Show More
@@ -295,7 +295,7 b' pypats = [' | |||
|
295 | 295 | "comparison with singleton, use 'is' or 'is not' instead"), |
|
296 | 296 | (r'^\s*(while|if) [01]:', |
|
297 | 297 | "use True/False for constant Boolean expression"), |
|
298 | (r'(?:(?<!def)\s+|\()hasattr', | |
|
298 | (r'(?:(?<!def)\s+|\()hasattr\(', | |
|
299 | 299 | 'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'), |
|
300 | 300 | (r'opener\([^)]*\).read\(', |
|
301 | 301 | "use opener.read() instead"), |
General Comments 0
You need to be logged in to leave comments.
Login now