278 "class foo() creates old style object, use class foo(object)", |
278 "class foo() creates old style object, use class foo(object)", |
279 r'#.*old-style'), |
279 r'#.*old-style'), |
280 (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist |
280 (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist |
281 if k not in ('print', 'exec')), |
281 if k not in ('print', 'exec')), |
282 "Python keyword is not a function"), |
282 "Python keyword is not a function"), |
283 (r',]', "unneeded trailing ',' in list"), |
|
284 # (r'class\s[A-Z][^\(]*\((?!Exception)', |
283 # (r'class\s[A-Z][^\(]*\((?!Exception)', |
285 # "don't capitalize non-exception classes"), |
284 # "don't capitalize non-exception classes"), |
286 # (r'in range\(', "use xrange"), |
285 # (r'in range\(', "use xrange"), |
287 # (r'^\s*print\s+', "avoid using print in core and extensions"), |
286 # (r'^\s*print\s+', "avoid using print in core and extensions"), |
288 (r'[\x80-\xff]', "non-ASCII character literal"), |
287 (r'[\x80-\xff]', "non-ASCII character literal"), |