summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:06:22 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:06:22 (GMT)
commitdecc4b99e136000e4f03df676ff672c0eccafd3c (patch)
tree227bfdcb058979b8d8d98b733c291d1785b2f1e7 /Lib
parent1820010c1a6e6338b8dd927364662aa99d18b1d4 (diff)
downloadcpython-decc4b99e136000e4f03df676ff672c0eccafd3c.zip
cpython-decc4b99e136000e4f03df676ff672c0eccafd3c.tar.gz
cpython-decc4b99e136000e4f03df676ff672c0eccafd3c.tar.bz2
Use ImportError
Diffstat (limited to 'Lib')
-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 *