From 703175e78335e5d6ea0ade701bd93bf23a3dec5b Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Wed, 10 Nov 2010 18:27:23 +0100 Subject: cleanup: remove python < 2.5 support --- checkers/exceptions.py | 8 ++------ test/smoketest.py | 2 -- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/checkers/exceptions.py b/checkers/exceptions.py index 3e95bf02e..8390e57cd 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 5b0e51163..486704d9a 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: -- cgit v1.2.1