mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +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:
|
try:
|
||||||
import mac
|
import mac
|
||||||
os = mac
|
os = mac
|
||||||
except NameError:
|
except ImportError:
|
||||||
import posix
|
import posix
|
||||||
os = posix
|
os = posix
|
||||||
from stat import *
|
from stat import *
|
||||||
|
|
|
@ -5,7 +5,7 @@ import sys
|
||||||
try:
|
try:
|
||||||
import mac
|
import mac
|
||||||
os = mac
|
os = mac
|
||||||
except NameError:
|
except ImportError:
|
||||||
import posix
|
import posix
|
||||||
os = posix
|
os = posix
|
||||||
from stat import *
|
from stat import *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue