diff options
author | Guido van Rossum <guido@python.org> | 1995-08-10 19:32:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-10 19:32:22 (GMT) |
commit | 92794e30cb9ef26f0d0df539d5df9723b8d5baa8 (patch) | |
tree | 8d2b4d99172b52a2cd5dc17532b347943b44a5ef | |
parent | baf642ed169dc8232e951249896346585d2b2cc0 (diff) | |
download | cpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.zip cpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.tar.gz cpython-92794e30cb9ef26f0d0df539d5df9723b8d5baa8.tar.bz2 |
don't print Cannot open/stat messages
-rw-r--r-- | Lib/linecache.py | 4 |
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 |