contrib/check-code.py
changeset 29793 24991e7f775f
parent 29569 3d52e7c78a6b
child 29796 6ab838b20359
equal deleted inserted replaced
29792:58467204cac0 29793:24991e7f775f
   235      "tuple parameter unpacking not available in Python 3+"),
   235      "tuple parameter unpacking not available in Python 3+"),
   236     (r'lambda\s*\(.*,.*\)',
   236     (r'lambda\s*\(.*,.*\)',
   237      "tuple parameter unpacking not available in Python 3+"),
   237      "tuple parameter unpacking not available in Python 3+"),
   238     (r'(?<!def)\s+(cmp)\(', "cmp is not available in Python 3+"),
   238     (r'(?<!def)\s+(cmp)\(', "cmp is not available in Python 3+"),
   239     (r'\breduce\s*\(.*', "reduce is not available in Python 3+"),
   239     (r'\breduce\s*\(.*', "reduce is not available in Python 3+"),
   240     (r'dict\(.*=', 'dict() is different in Py2 and 3 and is slower than {}',
   240     (r'\bdict\(.*=', 'dict() is different in Py2 and 3 and is slower than {}',
   241      'dict-from-generator'),
   241      'dict-from-generator'),
   242     (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
   242     (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
   243     (r'\s<>\s', '<> operator is not available in Python 3+, use !='),
   243     (r'\s<>\s', '<> operator is not available in Python 3+, use !='),
   244     (r'^\s*\t', "don't use tabs"),
   244     (r'^\s*\t', "don't use tabs"),
   245     (r'\S;\s*\n', "semicolon"),
   245     (r'\S;\s*\n', "semicolon"),