mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
don't print Cannot open/stat messages
This commit is contained in:
parent
baf642ed16
commit
92794e30cb
1 changed files with 2 additions and 2 deletions
|
@ -76,14 +76,14 @@ def updatecache(filename):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# No luck
|
# No luck
|
||||||
print '*** Cannot stat', filename, ':', msg
|
## print '*** Cannot stat', filename, ':', msg
|
||||||
return []
|
return []
|
||||||
try:
|
try:
|
||||||
fp = open(fullname, 'r')
|
fp = open(fullname, 'r')
|
||||||
lines = fp.readlines()
|
lines = fp.readlines()
|
||||||
fp.close()
|
fp.close()
|
||||||
except IOError, msg:
|
except IOError, msg:
|
||||||
print '*** Cannot open', fullname, ':', msg
|
## print '*** Cannot open', fullname, ':', msg
|
||||||
return []
|
return []
|
||||||
size, mtime = stat[ST_SIZE], stat[ST_MTIME]
|
size, mtime = stat[ST_SIZE], stat[ST_MTIME]
|
||||||
cache[filename] = size, mtime, lines, fullname
|
cache[filename] = size, mtime, lines, fullname
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue