mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Use ImportError.
This commit is contained in:
parent
61f9d0d242
commit
aa3760d91d
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ try:
|
|||
import posix
|
||||
os = posix
|
||||
import path
|
||||
except NameError:
|
||||
except ImportError:
|
||||
import mac
|
||||
os = mac
|
||||
import macpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue