##// END OF EJS Templates
check-code: detect legacy octal syntax...
Gregory Szorc -
r25659:d60678a5 default
parent child Browse files
Show More
@@ -288,6 +288,7 b' pypats = ['
288 (r'\b__bool__\b', "__bool__ should be __nonzero__ in Python 2"),
288 (r'\b__bool__\b', "__bool__ should be __nonzero__ in Python 2"),
289 (r'os\.path\.join\(.*, *(""|\'\')\)',
289 (r'os\.path\.join\(.*, *(""|\'\')\)',
290 "use pathutil.normasprefix(path) instead of os.path.join(path, '')"),
290 "use pathutil.normasprefix(path) instead of os.path.join(path, '')"),
291 (r'\s0[0-7]+\b', 'legacy octal syntax; use "0o" prefix instead of "0"'),
291 ],
292 ],
292 # warnings
293 # warnings
293 [
294 [
General Comments 0
You need to be logged in to leave comments. Login now