contrib/check-code.py
changeset 34508 b521b3a79afd
parent 34429 b332c01247d8
child 34573 3e4b7861c1c5
--- a/contrib/check-code.py	Thu Oct 05 20:46:49 2017 +0000
+++ b/contrib/check-code.py	Thu Oct 05 14:18:55 2017 -0700
@@ -345,6 +345,7 @@
     (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"),
     (r'\butil\.Abort\b', "directly use error.Abort"),
     (r'^@(\w*\.)?cachefunc', "module-level @cachefunc is risky, please avoid"),
+    (r'^import atexit', "don't use atexit, use ui.atexit"),
     (r'^import Queue', "don't use Queue, use util.queue + util.empty"),
     (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"),
     (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"),