equal
deleted
inserted
replaced
369 ( |
369 ( |
370 r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S', |
370 r'\s(\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S', |
371 "missing whitespace around operator", |
371 "missing whitespace around operator", |
372 ), |
372 ), |
373 (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]', "wrong whitespace around ="), |
373 (r'[^^+=*/!<>&| %-](\s=|=\s)[^= ]', "wrong whitespace around ="), |
374 ( |
|
375 r'\([^()]*( =[^=]|[^<>!=]= )', |
|
376 "no whitespace around = for named parameters", |
|
377 ), |
|
378 ( |
374 ( |
379 r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$', |
375 r'raise [^,(]+, (\([^\)]+\)|[^,\(\)]+)$', |
380 "don't use old-style two-argument raise, use Exception(message)", |
376 "don't use old-style two-argument raise, use Exception(message)", |
381 ), |
377 ), |
382 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), |
378 (r' is\s+(not\s+)?["\'0-9-]', "object comparison with literal"), |