diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 18:27:23 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-10 18:27:23 +0100 |
commit | 382052308669553e211a4beae0137429e90a51f8 (patch) | |
tree | fd7824c9bb66b2ce223219609bde6130616c3272 | |
parent | 7b695458cdd9c55e490e13e28fa7000096ffd6e8 (diff) | |
download | pylint-382052308669553e211a4beae0137429e90a51f8.tar.gz |
cleanup: remove python < 2.5 support
-rw-r--r-- | checkers/exceptions.py | 8 | ||||
-rw-r--r-- | test/smoketest.py | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py index 3e95bf0..8390e57 100644 --- a/checkers/exceptions.py +++ b/checkers/exceptions.py @@ -53,12 +53,8 @@ MSGS = { 'Used when a custom exception class is raised but doesn\'t \ inherit from the builtin "Exception" class.'), } -if sys.version_info < (2, 5): - MSGS['E0710'] = ('Raising a new style class', - 'Used when a new style class is raised since it\'s not \ - possible with python < 2.5.') -else: - MSGS['E0710'] = ('Raising a new style class which doesn\'t inherit from \ + +MSGS['E0710'] = ('Raising a new style class which doesn\'t inherit from \ BaseException', 'Used when a new style class which doesn\'t inherit from \ BaseException is raised since it\'s not possible with \ diff --git a/test/smoketest.py b/test/smoketest.py index 5b0e511..486704d 100644 --- a/test/smoketest.py +++ b/test/smoketest.py @@ -29,8 +29,6 @@ class RunTC(TestCase): def _runtest(self, args, reporter=None, out=None, code=28): if out is None: out = StringIO() - if sys.version_info < (2, 5) and 'pylint.lint' in args: - code = 30 try: sys.stderr = sys.stdout = out try: |