116 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"), |
116 # (r'\w*[a-z][A-Z]\w*\s*=', "don't use camelcase in identifiers"), |
117 (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', |
117 (r'^\s*(if|while|def|class|except|try)\s[^[]*:\s*[^\]#\s]+', |
118 "linebreak after :"), |
118 "linebreak after :"), |
119 (r'class\s[^(]:', "old-style class, use class foo(object)"), |
119 (r'class\s[^(]:', "old-style class, use class foo(object)"), |
120 (r'^\s+del\(', "del isn't a function"), |
120 (r'^\s+del\(', "del isn't a function"), |
|
121 (r'\band\(', "and isn't a function"), |
|
122 (r'\bor\(', "or isn't a function"), |
|
123 (r'\bnot\(', "not isn't a function"), |
121 (r'^\s+except\(', "except isn't a function"), |
124 (r'^\s+except\(', "except isn't a function"), |
122 (r',]', "unneeded trailing ',' in list"), |
125 (r',]', "unneeded trailing ',' in list"), |
123 # (r'class\s[A-Z][^\(]*\((?!Exception)', |
126 # (r'class\s[A-Z][^\(]*\((?!Exception)', |
124 # "don't capitalize non-exception classes"), |
127 # "don't capitalize non-exception classes"), |
125 # (r'in range\(', "use xrange"), |
128 # (r'in range\(', "use xrange"), |