Use ImportError

This commit is contained in:
Guido van Rossum 1991-12-26 13:06:22 +00:00
parent 1820010c1a
commit decc4b99e1
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
try:
import mac
os = mac
except NameError:
except ImportError:
import posix
os = posix
from stat import *

View File

@ -5,7 +5,7 @@
try:
import mac
os = mac
except NameError:
except ImportError:
import posix
os = posix
from stat import *