]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use ImportError
authorGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:06:22 +0000 (13:06 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 26 Dec 1991 13:06:22 +0000 (13:06 +0000)
Lib/lib-old/tb.py
Lib/tb.py

index e0f274897dd780cd5b9d0123a405537125dc160c..ec631049ecc3032db96a4d8e45c5807621e3788e 100644 (file)
@@ -5,7 +5,7 @@ import sys
 try:
        import mac
        os = mac
-except NameError:
+except ImportError:
        import posix
        os = posix
 from stat import *
index e0f274897dd780cd5b9d0123a405537125dc160c..ec631049ecc3032db96a4d8e45c5807621e3788e 100644 (file)
--- 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 *