contrib/check-code.py
changeset 25212 a39c35e8e559
parent 25200 3613819fb05f
child 25588 b40071379c5b
--- a/contrib/check-code.py	Mon May 18 23:43:36 2015 -0500
+++ b/contrib/check-code.py	Tue May 19 08:41:04 2015 -0500
@@ -239,6 +239,7 @@
 #    (r'in range\(', "use xrange"),
 #    (r'^\s*print\s+', "avoid using print in core and extensions"),
     (r'[\x80-\xff]', "non-ASCII character literal"),
+    (r'("\')\.format\(', "str.format() has no bytes counterpart, use %"),
     (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist),
      "gratuitous whitespace after Python keyword"),
     (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"),