mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Catch only ImportError
This commit is contained in:
parent
0ae2981dec
commit
ccf4e421b8
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ from copy import copy
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import warnings
|
import warnings
|
||||||
except:
|
except ImportError:
|
||||||
warnings = None
|
warnings = None
|
||||||
|
|
||||||
from distutils.errors import *
|
from distutils.errors import *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue