equal
deleted
inserted
replaced
313 "use pathutil.normasprefix(path) instead of os.path.join(path, '')"), |
313 "use pathutil.normasprefix(path) instead of os.path.join(path, '')"), |
314 (r'\s0[0-7]+\b', 'legacy octal syntax; use "0o" prefix instead of "0"'), |
314 (r'\s0[0-7]+\b', 'legacy octal syntax; use "0o" prefix instead of "0"'), |
315 # XXX only catch mutable arguments on the first line of the definition |
315 # XXX only catch mutable arguments on the first line of the definition |
316 (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), |
316 (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), |
317 (r'\butil\.Abort\b', "directly use error.Abort"), |
317 (r'\butil\.Abort\b', "directly use error.Abort"), |
|
318 (r'^import Queue', "don't use Queue, use util.queue + util.empty"), |
318 ], |
319 ], |
319 # warnings |
320 # warnings |
320 [ |
321 [ |
321 (r'(^| )pp +xxxxqq[ \n][^\n]', "add two newlines after '.. note::'"), |
322 (r'(^| )pp +xxxxqq[ \n][^\n]', "add two newlines after '.. note::'"), |
322 ] |
323 ] |