check-code: catch dict.has_key
authorMartin Geisler <mg@lazybytes.net>
Fri, 16 Jul 2010 14:48:52 +0200
changeset 11602 ba2520dd1e29
parent 11601 4d9b4725acac
child 11603 2eab5025f804
check-code: catch dict.has_key
contrib/check-code.py
--- a/contrib/check-code.py	Fri Jul 16 14:45:52 2010 +0200
+++ b/contrib/check-code.py	Fri Jul 16 14:48:52 2010 +0200
@@ -75,6 +75,7 @@
     (r'lambda\s*\(.*,.*\)',
      "tuple parameter unpacking not available in Python 3+"),
     (r'\breduce\s*\(.*', "reduce is not available in Python 3+"),
+    (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
     (r'^\s*\t', "don't use tabs"),
     (r'\S;\s*\n', "semicolon"),
     (r'\w,\w', "missing whitespace after ,"),