Show More
@@ -238,7 +238,8 b' pypats = [' | |||
|
238 | 238 | (r'class\s[^( \n]+:', "old-style class, use class foo(object)"), |
|
239 | 239 | (r'class\s[^( \n]+\(\):', |
|
240 | 240 | "class foo() not available in Python 2.4, use class foo(object)"), |
|
241 |
(r'\b(%s)\(' % '|'.join(keyword.kwlist |
|
|
241 | (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist | |
|
242 | if k not in ('print', 'exec')), | |
|
242 | 243 | "Python keyword is not a function"), |
|
243 | 244 | (r',]', "unneeded trailing ',' in list"), |
|
244 | 245 | # (r'class\s[A-Z][^\(]*\((?!Exception)', |
General Comments 0
You need to be logged in to leave comments.
Login now