From decc4b99e136000e4f03df676ff672c0eccafd3c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Dec 1991 13:06:22 +0000 Subject: Use ImportError --- Lib/lib-old/tb.py | 2 +- 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 * 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 * -- cgit v0.12