Show More
@@ -345,6 +345,7 b' pypats = [' | |||||
345 | (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), |
|
345 | (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), | |
346 | (r'\butil\.Abort\b', "directly use error.Abort"), |
|
346 | (r'\butil\.Abort\b', "directly use error.Abort"), | |
347 | (r'^@(\w*\.)?cachefunc', "module-level @cachefunc is risky, please avoid"), |
|
347 | (r'^@(\w*\.)?cachefunc', "module-level @cachefunc is risky, please avoid"), | |
|
348 | (r'^import atexit', "don't use atexit, use ui.atexit"), | |||
348 | (r'^import Queue', "don't use Queue, use util.queue + util.empty"), |
|
349 | (r'^import Queue', "don't use Queue, use util.queue + util.empty"), | |
349 | (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"), |
|
350 | (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"), | |
350 | (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"), |
|
351 | (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"), |
General Comments 0
You need to be logged in to leave comments.
Login now