mirror of https://github.com/python/cpython.git
Use ImportError
This commit is contained in:
parent
1820010c1a
commit
decc4b99e1
|
@ -5,7 +5,7 @@
|
|||
try:
|
||||
import mac
|
||||
os = mac
|
||||
except NameError:
|
||||
except ImportError:
|
||||
import posix
|
||||
os = posix
|
||||
from stat import *
|
||||
|
|
Loading…
Reference in New Issue