mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
Import exceptions from errors.py, not ccompiler.py.
This commit is contained in:
parent
39804cbc60
commit
3add77f611
@ -12,11 +12,11 @@ __revision__ = "$Id$"
|
||||
|
||||
import sys, os, string
|
||||
from types import *
|
||||
from distutils.errors import *
|
||||
from distutils.ccompiler import \
|
||||
CCompiler, gen_preprocess_options, gen_lib_options, \
|
||||
from distutils.errors import \
|
||||
DistutilsExecError, DistutilsPlatformError, \
|
||||
CompileError, LibError, LinkError
|
||||
|
||||
from distutils.ccompiler import \
|
||||
CCompiler, gen_preprocess_options, gen_lib_options
|
||||
|
||||
_can_read_reg = 0
|
||||
try:
|
||||
|
@ -22,9 +22,9 @@ from types import *
|
||||
from copy import copy
|
||||
from distutils import sysconfig
|
||||
from distutils.ccompiler import \
|
||||
CCompiler, gen_preprocess_options, gen_lib_options, \
|
||||
CompileError, LibError, LinkError
|
||||
from distutils.errors import DistutilsExecError
|
||||
CCompiler, gen_preprocess_options, gen_lib_options
|
||||
from distutils.errors import \
|
||||
DistutilsExecError, CompileError, LibError, LinkError
|
||||
|
||||
# XXX Things not currently handled:
|
||||
# * optimization/debug/warning flags; we just use whatever's in Python's
|
||||
|
Loading…
Reference in New Issue
Block a user