Issue #16706: get rid of os.error
diff --git a/Lib/macpath.py b/Lib/macpath.py
index 1615d91..d34f9e94 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -127,7 +127,7 @@
 
     try:
         st = os.lstat(path)
-    except os.error:
+    except OSError:
         return False
     return True