Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92794e3

Browse files
committed
don't print Cannot open/stat messages
1 parent baf642e commit 92794e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/linecache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def updatecache(filename):
7676
pass
7777
else:
7878
# No luck
79-
print '*** Cannot stat', filename, ':', msg
79+
## print '*** Cannot stat', filename, ':', msg
8080
return []
8181
try:
8282
fp = open(fullname, 'r')
8383
lines = fp.readlines()
8484
fp.close()
8585
except IOError, msg:
86-
print '*** Cannot open', fullname, ':', msg
86+
## print '*** Cannot open', fullname, ':', msg
8787
return []
8888
size, mtime = stat[ST_SIZE], stat[ST_MTIME]
8989
cache[filename] = size, mtime, lines, fullname

0 commit comments

Comments
 (0)