changeset 11602:ba2520dd1e29

check-code: catch dict.has_key
author Martin Geisler <mg@lazybytes.net>
date Fri, 16 Jul 2010 14:48:52 +0200
parents 4d9b4725acac
children 2eab5025f804
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ,"),