diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-12-21 01:22:46 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-12-21 01:22:46 (GMT) |
commit | 2b66da7d15e47f9ca0d08d4f18fc63c3ee6a0d51 (patch) | |
tree | 5f601e8659a1511fc64880c935d1033318b9cccf /Lib/distutils/msvccompiler.py | |
parent | 2421d56e0205b58b925d1b6534f8ee3505ed549b (diff) | |
download | cpython-2b66da7d15e47f9ca0d08d4f18fc63c3ee6a0d51.zip cpython-2b66da7d15e47f9ca0d08d4f18fc63c3ee6a0d51.tar.gz cpython-2b66da7d15e47f9ca0d08d4f18fc63c3ee6a0d51.tar.bz2 |
massive import cleaning in Distutils
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r-- | Lib/distutils/msvccompiler.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index d38afb7..0e69fd3 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -10,12 +10,13 @@ for the Microsoft Visual Studio. __revision__ = "$Id$" -import sys, os, string -from distutils.errors import \ - DistutilsExecError, DistutilsPlatformError, \ - CompileError, LibError, LinkError -from distutils.ccompiler import \ - CCompiler, gen_preprocess_options, gen_lib_options +import sys +import os +import string + +from distutils.errors import (DistutilsExecError, DistutilsPlatformError, + CompileError, LibError, LinkError) +from distutils.ccompiler import CCompiler, gen_lib_options from distutils import log _can_read_reg = 0 @@ -127,7 +128,7 @@ class MacroExpander: self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1") else: self.set_macro("FrameworkSDKDir", net, "sdkinstallroot") - except KeyError, exc: # + except KeyError: raise DistutilsPlatformError, \ ("""Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. |