Show More
@@ -345,6 +345,7 pypats = [ | |||
|
345 | 345 | (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), |
|
346 | 346 | (r'\butil\.Abort\b', "directly use error.Abort"), |
|
347 | 347 | (r'^@(\w*\.)?cachefunc', "module-level @cachefunc is risky, please avoid"), |
|
348 | (r'^import atexit', "don't use atexit, use ui.atexit"), | |
|
348 | 349 | (r'^import Queue', "don't use Queue, use util.queue + util.empty"), |
|
349 | 350 | (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"), |
|
350 | 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