don't print Cannot open/stat messages

This commit is contained in:
Guido van Rossum 1995-08-10 19:32:22 +00:00
parent baf642ed16
commit 92794e30cb
1 changed files with 2 additions and 2 deletions

View File

@ -76,14 +76,14 @@ def updatecache(filename):
pass
else:
# No luck
print '*** Cannot stat', filename, ':', msg
## print '*** Cannot stat', filename, ':', msg
return []
try:
fp = open(fullname, 'r')
lines = fp.readlines()
fp.close()
except IOError, msg:
print '*** Cannot open', fullname, ':', msg
## print '*** Cannot open', fullname, ':', msg
return []
size, mtime = stat[ST_SIZE], stat[ST_MTIME]
cache[filename] = size, mtime, lines, fullname