changeset 11764 | 16723af520b0 |
parent 11672 | dad185761392 |
child 11816 | e1359ad582f6 |
--- a/contrib/check-code.py Sat Aug 07 16:12:51 2010 -0300 +++ b/contrib/check-code.py Sat Aug 07 16:13:53 2010 -0300 @@ -74,6 +74,7 @@ "tuple parameter unpacking not available in Python 3+"), (r'lambda\s*\(.*,.*\)', "tuple parameter unpacking not available in Python 3+"), + (r'(?<!def)\s+(cmp)\(', "cmp is 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"),