summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/msvccompiler.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-12-21 01:49:00 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-12-21 01:49:00 (GMT)
commit88e2c5d35a9ce74e779bfc5cb38624bef49c695f (patch)
treec9b8985c220a5d99d1caae8c25c8d654be47bac0 /Lib/distutils/msvccompiler.py
parent8b9361a26df8b336d08de6a59387c56be520591f (diff)
downloadcpython-88e2c5d35a9ce74e779bfc5cb38624bef49c695f.zip
cpython-88e2c5d35a9ce74e779bfc5cb38624bef49c695f.tar.gz
cpython-88e2c5d35a9ce74e779bfc5cb38624bef49c695f.tar.bz2
Merged revisions 76956 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76956 | tarek.ziade | 2009-12-21 02:22:46 +0100 (Mon, 21 Dec 2009) | 1 line massive import cleaning in Distutils ........
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r--Lib/distutils/msvccompiler.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index 1cd0f91..dc3bd8d 100644
--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -10,12 +10,12 @@ for the Microsoft Visual Studio.
__revision__ = "$Id$"
-import sys, os
-from distutils.errors import \
- DistutilsExecError, DistutilsPlatformError, \
- CompileError, LibError, LinkError
-from distutils.ccompiler import \
- CCompiler, gen_preprocess_options, gen_lib_options
+import sys
+import os
+
+from distutils.errors import (DistutilsExecError, DistutilsPlatformError,
+ CompileError, LibError, LinkError)
+from distutils.ccompiler import CCompiler, gen_lib_options
from distutils import log
_can_read_reg = False
@@ -124,7 +124,7 @@ class MacroExpander:
self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1")
else:
self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
- except KeyError as exc: #
+ except KeyError:
raise DistutilsPlatformError(
"""Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.