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