changeset 25197:6faa7d986a8b

check-code: drop ban of str.format After discussion with Augie and Matt, we are fine with it being introduced in the code base.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 May 2015 16:09:05 -0500
parents 7a1af58ab242
children db77ff0b63da
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),