summaryrefslogtreecommitdiffstats
path: root/Lib/linecache.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-10 19:32:22 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-10 19:32:22 (GMT)
commit92794e30cb9ef26f0d0df539d5df9723b8d5baa8 (patch)
tree8d2b4d99172b52a2cd5dc17532b347943b44a5ef /Lib/linecache.py
parentbaf642ed169dc8232e951249896346585d2b2cc0 (diff)
downloadcpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.zip
cpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.tar.gz
cpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.tar.bz2
don't print Cannot open/stat messages
Diffstat (limited to 'Lib/linecache.py')
-rw-r--r--Lib/linecache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/linecache.py b/Lib/linecache.py
index f5726e9..7de373f 100644
--- a/Lib/linecache.py
+++ b/Lib/linecache.py
@@ -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