summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/lib-old/tb.py2
-rw-r--r--Lib/tb.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-old/tb.py b/Lib/lib-old/tb.py
index e0f2748..ec63104 100644
--- a/Lib/lib-old/tb.py
+++ b/Lib/lib-old/tb.py
@@ -5,7 +5,7 @@ import sys
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 e0f2748..ec63104 100644
--- a/Lib/tb.py
+++ b/Lib/tb.py
@@ -5,7 +5,7 @@ import sys
try:
import mac
os = mac
-except NameError:
+except ImportError:
import posix
os = posix
from stat import *