Show More
@@ -325,6 +325,7 b' pypats = [' | |||||
325 | # XXX only catch mutable arguments on the first line of the definition |
|
325 | # XXX only catch mutable arguments on the first line of the definition | |
326 | (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), |
|
326 | (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), | |
327 | (r'\butil\.Abort\b', "directly use error.Abort"), |
|
327 | (r'\butil\.Abort\b', "directly use error.Abort"), | |
|
328 | (r'^@(\w*\.)?cachefunc', "module-level @cachefunc is risky, please avoid"), | |||
328 | (r'^import Queue', "don't use Queue, use util.queue + util.empty"), |
|
329 | (r'^import Queue', "don't use Queue, use util.queue + util.empty"), | |
329 | (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"), |
|
330 | (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"), | |
330 | (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"), |
|
331 | (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