Show More
@@ -301,6 +301,7 b' pypats = [' | |||
|
301 | 301 | "comparison with singleton, use 'is' or 'is not' instead"), |
|
302 | 302 | (r'^\s*(while|if) [01]:', |
|
303 | 303 | "use True/False for constant Boolean expression"), |
|
304 | (r'^\s*if False(:| +and)', 'Remove code instead of using `if False`'), | |
|
304 | 305 | (r'(?:(?<!def)\s+|\()hasattr\(', |
|
305 | 306 | 'hasattr(foo, bar) is broken on py2, use util.safehasattr(foo, bar) ' |
|
306 | 307 | 'instead', r'#.*hasattr-py3-only'), |
General Comments 0
You need to be logged in to leave comments.
Login now