diff --git a/Lib/lib-old/tb.py b/Lib/lib-old/tb.py index e0f274897dd..ec631049ecc 100644 --- a/Lib/lib-old/tb.py +++ b/Lib/lib-old/tb.py @@ -5,7 +5,7 @@ try: import mac os = mac -except NameError: +except ImportError: import posix os = posix from stat import * diff --git a/Lib/tb.py b/Lib/tb.py index e0f274897dd..ec631049ecc 100644 --- a/Lib/tb.py +++ b/Lib/tb.py @@ -5,7 +5,7 @@ try: import mac os = mac -except NameError: +except ImportError: import posix os = posix from stat import *