summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-30 02:02:49 (GMT)
committerGreg Ward <gward@python.net>2000-05-30 02:02:49 (GMT)
commit3add77f6110346a2ee7d0baa1d159f6685970b8b (patch)
tree3d53ee0e227b974399ae765b2cf0bf065da13ad1 /Lib
parent39804cbc6027bc7869ceec75ba73de335222405a (diff)
downloadcpython-3add77f6110346a2ee7d0baa1d159f6685970b8b.zip
cpython-3add77f6110346a2ee7d0baa1d159f6685970b8b.tar.gz
cpython-3add77f6110346a2ee7d0baa1d159f6685970b8b.tar.bz2
Import exceptions from errors.py, not ccompiler.py.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/msvccompiler.py8
-rw-r--r--Lib/distutils/unixccompiler.py6
2 files changed, 7 insertions, 7 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index 06b415e..06d8501 100644
--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -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:
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index c2f841f..4d38e4d 100644
--- a/Lib/distutils/unixccompiler.py
+++ b/Lib/distutils/unixccompiler.py
@@ -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