diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index 1615d91..c5af102 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -127,7 +127,7 @@ def lexists(path): try: st = os.lstat(path) - except os.error: + except OSError: return False return True @@ -187,7 +187,7 @@ def realpath(path): path = abspath(path) try: import Carbon.File - except ImportError: + except ModuleNotFoundError: return path if not path: return path |