Commit 92794e30 authored by Guido van Rossum's avatar Guido van Rossum

don't print Cannot open/stat messages

parent baf642ed
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment