summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-12-16 11:29:31 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-12-16 11:29:31 +0100
commitbde35abc2be9cc02058c08db12596aaeae9612c7 (patch)
tree3ee590b9b40fe8779dc2502a346ad1efb916eab8
parenta67fa6cdbe7019d0d87a03dd9c69c8d8dd3884f1 (diff)
downloadpylint-git-bde35abc2be9cc02058c08db12596aaeae9612c7.tar.gz
py3k : disable W0122 W0331 W0332 W0333 mesages for python3
-rw-r--r--checkers/format.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/checkers/format.py b/checkers/format.py
index 8d6ab67c4..65202ff78 100644
--- a/checkers/format.py
+++ b/checkers/format.py
@@ -58,7 +58,11 @@ MSGS = {
'| > | = | \+= | -= | \*= | /= | %) is not followed by a space.'),
'C0324': ('Comma not followed by a space\n%s',
'Used when a comma (",") is not followed by a space.'),
+ }
+
+if sys.version_info < (3, 0):
+ MSGS.update({
'W0331': ('Use of the <> operator',
'Used when the deprecated "<>" operator is used instead \
of "!=".'),