##// END OF EJS Templates
check-code: look for misuse of __bool__
Yuya Nishihara -
r22448:8afaf7ce default
parent child Browse files
Show More
@@ -299,6 +299,7 b' pypats = ['
299 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
299 (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
300 "missing _() in ui message (use () to hide false-positives)"),
300 "missing _() in ui message (use () to hide false-positives)"),
301 (r'release\(.*wlock, .*lock\)', "wrong lock release order"),
301 (r'release\(.*wlock, .*lock\)', "wrong lock release order"),
302 (r'\b__bool__\b', "__bool__ should be __nonzero__ in Python 2"),
302 ],
303 ],
303 # warnings
304 # warnings
304 [
305 [
General Comments 0
You need to be logged in to leave comments. Login now