contrib/check-code.py
changeset 11602 ba2520dd1e29
parent 11601 4d9b4725acac
child 11604 c5d40818b270
--- 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 ,"),