commit | ad28c7f9dad791567afa0624acfb3ba430851965 | [log] [tgz] |
---|---|---|
author | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 22:02:39 2012 +0200 |
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | Tue Dec 18 22:02:39 2012 +0200 |
tree | 02095e5f567d6be1de31ffd858d21233b51675dd | |
parent | a19195984922ce89e7695c93b3bb45c3e0e6d732 [diff] [blame] |
Issue #16706: get rid of os.error
diff --git a/Lib/linecache.py b/Lib/linecache.py index c3f2c3f..71dc93d 100644 --- a/Lib/linecache.py +++ b/Lib/linecache.py
@@ -59,7 +59,7 @@ continue # no-op for files loaded via a __loader__ try: stat = os.stat(fullname) - except os.error: + except OSError: del cache[filename] continue if size != stat.st_size or mtime != stat.st_mtime: @@ -118,7 +118,7 @@ try: stat = os.stat(fullname) break - except os.error: + except OSError: pass else: return []