# HG changeset patch # User Martin Geisler # Date 2010-07-16 12:48:52 # Node ID ba2520dd1e29e279e9130d26f646f5ba8934856f # Parent 4d9b4725acac70172096c11b884abbd5ba2f4077 check-code: catch dict.has_key diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -75,6 +75,7 @@ pypats = [ (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 ,"),