##// END OF EJS Templates
test-check-code: fail new commits which use 'atexit' instead of 'ui.atexit'...
Saurabh Singh -
r34509:b521b3a7 default
parent child Browse files
Show More
@@ -345,6 +345,7 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