check-code: drop ban of str.format
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 16:09:05 -0500
changeset 25197 6faa7d986a8b
parent 25196 7a1af58ab242
child 25198 db77ff0b63da
check-code: drop ban of str.format After discussion with Augie and Matt, we are fine with it being introduced in the code base.
contrib/check-code.py
--- a/contrib/check-code.py	Mon May 18 22:40:16 2015 -0400
+++ b/contrib/check-code.py	Mon May 18 16:09:05 2015 -0500
@@ -239,7 +239,6 @@
 #    (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() not available in Python 2.4"),
     (r'(?<!def)\s+(format)\(',
      "format not available in Python 2.4", 'no-py24'),
     (r'if\s.*\selse', "if ... else form not available in Python 2.4"),