From ad28c7f9dad791567afa0624acfb3ba430851965 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Tue, 18 Dec 2012 22:02:39 +0200 Subject: Issue #16706: get rid of os.error --- Lib/ntpath.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/ntpath.py') diff --git a/Lib/ntpath.py b/Lib/ntpath.py index f70193f8e2..12494c5fb5 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -321,7 +321,7 @@ def islink(path): """ try: st = os.lstat(path) - except (os.error, AttributeError): + except (OSError, AttributeError): return False return stat.S_ISLNK(st.st_mode) @@ -331,7 +331,7 @@ def lexists(path): """Test whether a path exists. Returns True for broken symbolic links""" try: st = os.lstat(path) - except (os.error, WindowsError): + except (OSError, WindowsError): return False return True -- cgit v1.2.1