Show More
@@ -245,9 +245,11 b' pypats = [' | |||||
245 | "don't use camelcase in identifiers"), |
|
245 | "don't use camelcase in identifiers"), | |
246 | (r'^\s*(if|while|def|class|except|try)\s[^[\n]*:\s*[^\\n]#\s]+', |
|
246 | (r'^\s*(if|while|def|class|except|try)\s[^[\n]*:\s*[^\\n]#\s]+', | |
247 | "linebreak after :"), |
|
247 | "linebreak after :"), | |
248 |
(r'class\s[^( \n]+:', "old-style class, use class foo(object)" |
|
248 | (r'class\s[^( \n]+:', "old-style class, use class foo(object)", | |
|
249 | r'#.*old-style'), | |||
249 | (r'class\s[^( \n]+\(\):', |
|
250 | (r'class\s[^( \n]+\(\):', | |
250 |
"class foo() creates old style object, use class foo(object)" |
|
251 | "class foo() creates old style object, use class foo(object)", | |
|
252 | r'#.*old-style'), | |||
251 | (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist |
|
253 | (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist | |
252 | if k not in ('print', 'exec')), |
|
254 | if k not in ('print', 'exec')), | |
253 | "Python keyword is not a function"), |
|
255 | "Python keyword is not a function"), |
General Comments 0
You need to be logged in to leave comments.
Login now