[svn r45519] Ignore non-existing files

--HG--
branch : trunk
This commit is contained in:
fijal 2007-08-06 15:58:18 +02:00
parent f78a355042
commit a99085cea3
1 changed files with 5 additions and 2 deletions

View File

@ -43,7 +43,10 @@ if __name__ == '__main__':
if options.ignorecase: if options.ignorecase:
string = string.lower() string = string.lower()
for x in curdir.visit('*.py', rec): for x in curdir.visit('*.py', rec):
try:
s = x.read() s = x.read()
except py.error.ENOENT:
pass # whatever, probably broken link (ie emacs lock)
searchs = s searchs = s
if options.ignorecase: if options.ignorecase:
searchs = s.lower() searchs = s.lower()