mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Use ImportError
This commit is contained in:
parent
1820010c1a
commit
decc4b99e1
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import sys
|
|||
try:
|
||||
import mac
|
||||
os = mac
|
||||
except NameError:
|
||||
except ImportError:
|
||||
import posix
|
||||
os = posix
|
||||
from stat import *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue