Show More
@@ -407,7 +407,11 b' def checkfile(f, logfunc=_defaultlogger.' | |||
|
407 | 407 | print "Skipping %s for %s it doesn't match %s" % ( |
|
408 | 408 | name, match, f) |
|
409 | 409 | continue |
|
410 | try: | |
|
410 | 411 | fp = open(f) |
|
412 | except IOError, e: | |
|
413 | print "Skipping %s, %s" % (f, str(e).split(':', 1)[0]) | |
|
414 | continue | |
|
411 | 415 | pre = post = fp.read() |
|
412 | 416 | fp.close() |
|
413 | 417 | if "no-" "check-code" in pre: |
@@ -187,8 +187,10 b'' | |||
|
187 | 187 | > # this next line is okay |
|
188 | 188 | > raise SomeException(arg1, arg2) |
|
189 | 189 | > EOF |
|
190 | $ "$check_code" raise-format.py | |
|
190 | $ "$check_code" not-existing.py raise-format.py | |
|
191 | Skipping*not-existing.py* (glob) | |
|
191 | 192 | raise-format.py:1: |
|
192 | 193 | > raise SomeException, message |
|
193 | 194 | don't use old-style two-argument raise, use Exception(message) |
|
194 | 195 | [1] |
|
196 |
General Comments 0
You need to be logged in to leave comments.
Login now