# HG changeset patch # User Pierre-Yves David # Date 1431983898 18000 # Node ID 3613819fb05fe0b7f69ca8894e07d4ea306c84b3 # Parent e78447e616246c42d62cd6c4da84f6b785823d12 check-code: drop ban of 'val if cond else otherval' construct We now have access to this horrible but less bad than 'cond and val or otherval' syntax. diff -r e78447e61624 -r 3613819fb05f contrib/check-code.py --- a/contrib/check-code.py Mon May 18 16:30:24 2015 -0500 +++ b/contrib/check-code.py Mon May 18 16:18:18 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'if\s.*\selse', "if ... else form not available in Python 2.4"), (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), "gratuitous whitespace after Python keyword"), (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"),