Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit decc4b9

Browse files
committed
Use ImportError
1 parent 1820010 commit decc4b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/lib-old/tb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
import mac
77
os = mac
8-
except NameError:
8+
except ImportError:
99
import posix
1010
os = posix
1111
from stat import *

Lib/tb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
import mac
77
os = mac
8-
except NameError:
8+
except ImportError:
99
import posix
1010
os = posix
1111
from stat import *

0 commit comments

Comments
 (0)