contrib/check-code.py
changeset 28820 9848a6c77a9b
parent 28781 c042b98a6ff8
child 28884 75309badb485
--- a/contrib/check-code.py	Wed Apr 06 20:07:51 2016 +0000
+++ b/contrib/check-code.py	Wed Apr 06 20:08:18 2016 +0000
@@ -315,6 +315,7 @@
     # XXX only catch mutable arguments on the first line of the definition
     (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"),
     (r'\butil\.Abort\b', "directly use error.Abort"),
+    (r'^import Queue', "don't use Queue, use util.queue + util.empty"),
   ],
   # warnings
   [