contrib/check-code.py
changeset 52738 e38292b85f9f
parent 52640 24ee91ba9aa8
equal deleted inserted replaced
52737:e5f97898122f 52738:e38292b85f9f
   370         ),
   370         ),
   371         (
   371         (
   372             r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S',
   372             r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S',
   373             "missing whitespace around operator",
   373             "missing whitespace around operator",
   374         ),
   374         ),
   375         (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]', "wrong whitespace around ="),
   375         (r'[^^+=*/!<>&| %-:](\s=|=\s)[^= ]', "wrong whitespace around ="),
   376         (
   376         (
   377             r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$',
   377             r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$',
   378             "don't use old-style two-argument raise, use Exception(message)",
   378             "don't use old-style two-argument raise, use Exception(message)",
   379         ),
   379         ),
   380         (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),
   380         (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"),