mirror of https://github.com/python/cpython
Use ImportError.
This commit is contained in:
parent
61f9d0d242
commit
aa3760d91d
|
@ -6,7 +6,7 @@ try:
|
|||
import posix
|
||||
os = posix
|
||||
import path
|
||||
except NameError:
|
||||
except ImportError:
|
||||
import mac
|
||||
os = mac
|
||||
import macpath
|
||||
|
|
Loading…
Reference in New Issue