[svn r45519] Ignore non-existing files
--HG-- branch : trunk
This commit is contained in:
parent
f78a355042
commit
a99085cea3
|
@ -43,7 +43,10 @@ if __name__ == '__main__':
|
|||
if options.ignorecase:
|
||||
string = string.lower()
|
||||
for x in curdir.visit('*.py', rec):
|
||||
try:
|
||||
s = x.read()
|
||||
except py.error.ENOENT:
|
||||
pass # whatever, probably broken link (ie emacs lock)
|
||||
searchs = s
|
||||
if options.ignorecase:
|
||||
searchs = s.lower()
|
||||
|
|
Loading…
Reference in New Issue