mirror of https://github.com/python/cpython
Catch only ImportError
This commit is contained in:
parent
0ae2981dec
commit
ccf4e421b8
|
@ -15,7 +15,7 @@ from copy import copy
|
|||
|
||||
try:
|
||||
import warnings
|
||||
except:
|
||||
except ImportError:
|
||||
warnings = None
|
||||
|
||||
from distutils.errors import *
|
||||
|
|
Loading…
Reference in New Issue