]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
don't print Cannot open/stat messages
authorGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:32:22 +0000 (19:32 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Aug 1995 19:32:22 +0000 (19:32 +0000)
Lib/linecache.py

index f5726e9eb8dfff2cea55dc420ad6f752a4ee45e4..7de373fc54e628b9835fc64c49d022954e055b48 100644 (file)
@@ -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