diff options
author | Guido van Rossum <guido@python.org> | 1991-12-26 13:06:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-26 13:06:22 (GMT) |
commit | decc4b99e136000e4f03df676ff672c0eccafd3c (patch) | |
tree | 227bfdcb058979b8d8d98b733c291d1785b2f1e7 | |
parent | 1820010c1a6e6338b8dd927364662aa99d18b1d4 (diff) | |
download | cpython-decc4b99e136000e4f03df676ff672c0eccafd3c.zip cpython-decc4b99e136000e4f03df676ff672c0eccafd3c.tar.gz cpython-decc4b99e136000e4f03df676ff672c0eccafd3c.tar.bz2 |
Use ImportError
-rw-r--r-- | Lib/lib-old/tb.py | 2 | ||||
-rw-r--r-- | Lib/tb.py | 2 |
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 * @@ -5,7 +5,7 @@ import sys try: import mac os = mac -except NameError: +except ImportError: import posix os = posix from stat import * |