summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-10 18:27:23 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-10 18:27:23 +0100
commit703175e78335e5d6ea0ade701bd93bf23a3dec5b (patch)
tree84749a3d2fe32ce4f0bdf223e2897550abed7224
parent160f0c65a8b696bbb77fdf0e953601b671430418 (diff)
downloadpylint-git-703175e78335e5d6ea0ade701bd93bf23a3dec5b.tar.gz
cleanup: remove python < 2.5 support
-rw-r--r--checkers/exceptions.py8
-rw-r--r--test/smoketest.py2
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: