contrib/check-code.py
changeset 16234 a6941d7033fa
parent 16098 c6c9b83a1e8a
child 16249 0d175ac527c1
--- a/contrib/check-code.py	Thu Mar 08 15:59:41 2012 -0600
+++ b/contrib/check-code.py	Thu Mar 08 15:59:44 2012 -0600
@@ -122,6 +122,8 @@
     (r'\.has_key\b', "dict.has_key is not available in Python 3+"),
     (r'^\s*\t', "don't use tabs"),
     (r'\S;\s*\n', "semicolon"),
+    (r'[^_]_\("[^"]+"\s*%', "don't use % inside _()"),
+    (r"[^_]_\('[^']+'\s*%", "don't use % inside _()"),
     (r'\w,\w', "missing whitespace after ,"),
     (r'\w[+/*\-<>]\w', "missing whitespace in expression"),
     (r'^\s+\w+=\w+[^,)\n]$', "missing whitespace in assignment"),