equal
deleted
inserted
replaced
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"), |