Show More
@@ -216,7 +216,7 b' pypats = [' | |||
|
216 | 216 | (r'(?i)descendent', "the proper spelling is descendAnt"), |
|
217 | 217 | (r'\.debug\(\_', "don't mark debug messages for translation"), |
|
218 | 218 | (r'\.strip\(\)\.split\(\)', "no need to strip before splitting"), |
|
219 |
(r'^\s*except\s*:', " |
|
|
219 | (r'^\s*except\s*:', "naked except clause", r'#.*re-raises'), | |
|
220 | 220 | (r':\n( )*( ){1,3}[^ ]', "must indent 4 spaces"), |
|
221 | 221 | (r'ui\.(status|progress|write|note|warn)\([\'\"]x', |
|
222 | 222 | "missing _() in ui message (use () to hide false-positives)"), |
@@ -163,13 +163,13 b'' | |||
|
163 | 163 | object comparison with literal |
|
164 | 164 | [1] |
|
165 | 165 | |
|
166 |
$ cat > |
|
|
166 | $ cat > for-nolineno.py <<EOF | |
|
167 | 167 | > except: |
|
168 | 168 | > EOF |
|
169 |
$ |
|
|
170 |
|
|
|
169 | $ "$check_code" for-nolineno.py --nolineno | |
|
170 | for-nolineno.py:0: | |
|
171 | 171 |
|
|
172 |
|
|
|
172 | naked except clause | |
|
173 | 173 | [1] |
|
174 | 174 | |
|
175 | 175 |
$ |
General Comments 0
You need to be logged in to leave comments.
Login now