##// END OF EJS Templates
check-code: allow skipping hasattr check in py3-only code...
Siddharth Agarwal -
r32418:16519775 default
parent child Browse files
Show More
@@ -300,7 +300,8 b' pypats = ['
300 (r'^\s*(while|if) [01]:',
300 (r'^\s*(while|if) [01]:',
301 "use True/False for constant Boolean expression"),
301 "use True/False for constant Boolean expression"),
302 (r'(?:(?<!def)\s+|\()hasattr\(',
302 (r'(?:(?<!def)\s+|\()hasattr\(',
303 'hasattr(foo, bar) is broken, use util.safehasattr(foo, bar) instead'),
303 'hasattr(foo, bar) is broken on py2, use util.safehasattr(foo, bar) '
304 'instead', r'#.*hasattr-py3-only'),
304 (r'opener\([^)]*\).read\(',
305 (r'opener\([^)]*\).read\(',
305 "use opener.read() instead"),
306 "use opener.read() instead"),
306 (r'opener\([^)]*\).write\(',
307 (r'opener\([^)]*\).write\(',
General Comments 0
You need to be logged in to leave comments. Login now