# HG changeset patch # User Pierre-Yves David # Date 1431983345 18000 # Node ID 6faa7d986a8b3115d94cb6282e430fbbcf01786b # Parent 7a1af58ab2425e44da460f6e3571c9048aba7d64 check-code: drop ban of str.format After discussion with Augie and Matt, we are fine with it being introduced in the code base. diff -r 7a1af58ab242 -r 6faa7d986a8b 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'(?