Show More
@@ -239,6 +239,7 b' pypats = [' | |||||
239 | # (r'in range\(', "use xrange"), |
|
239 | # (r'in range\(', "use xrange"), | |
240 | # (r'^\s*print\s+', "avoid using print in core and extensions"), |
|
240 | # (r'^\s*print\s+', "avoid using print in core and extensions"), | |
241 | (r'[\x80-\xff]', "non-ASCII character literal"), |
|
241 | (r'[\x80-\xff]', "non-ASCII character literal"), | |
|
242 | (r'("\')\.format\(', "str.format() has no bytes counterpart, use %"), | |||
242 | (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), |
|
243 | (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), | |
243 | "gratuitous whitespace after Python keyword"), |
|
244 | "gratuitous whitespace after Python keyword"), | |
244 | (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"), |
|
245 | (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"), |
General Comments 0
You need to be logged in to leave comments.
Login now