@@ -61,7 +61,7 @@ class CCompiler:
6161 # different versions of libfoo.a in different locations. I
6262 # think this is useless without the ability to null out the
6363 # library search path anyways.
64-
64+
6565
6666 # Subclasses that rely on the standard filename generation methods
6767 # implemented below should override these; see the comment near
@@ -159,7 +159,7 @@ def set_executable(self, key, value):
159159 setattr (self , key , split_quoted (value ))
160160 else :
161161 setattr (self , key , value )
162-
162+
163163
164164
165165 def _find_macro (self , name ):
@@ -352,7 +352,7 @@ def _fix_compile_args (self, output_dir, macros, include_dirs):
352352 else :
353353 raise TypeError , \
354354 "'include_dirs' (if supplied) must be a list of strings"
355-
355+
356356 return (output_dir , macros , include_dirs )
357357
358358 # _fix_compile_args ()
@@ -364,7 +364,7 @@ def _prep_compile (self, sources, output_dir):
364364 list of all object files and a dictionary telling which source
365365 files can be skipped.
366366 """
367- # Get the list of expected output (object) files
367+ # Get the list of expected output (object) files
368368 objects = self .object_filenames (sources ,
369369 strip_dir = 1 ,
370370 output_dir = output_dir )
@@ -401,7 +401,7 @@ def _fix_object_args (self, objects, output_dir):
401401 raise TypeError , \
402402 "'objects' must be a list or tuple of strings"
403403 objects = list (objects )
404-
404+
405405 if output_dir is None :
406406 output_dir = self .output_dir
407407 elif type (output_dir ) is not StringType :
@@ -560,7 +560,7 @@ def create_static_lib (self,
560560 Raises LibError on failure.
561561 """
562562 pass
563-
563+
564564
565565 # values for target_desc parameter in link()
566566 SHARED_OBJECT = "shared_object"
@@ -621,7 +621,7 @@ def link (self,
621621 """
622622 raise NotImplementedError
623623
624-
624+
625625 # Old 'link_*()' methods, rewritten to use the new 'link()' method.
626626
627627 def link_shared_lib (self ,
@@ -636,13 +636,13 @@ def link_shared_lib (self,
636636 extra_preargs = None ,
637637 extra_postargs = None ,
638638 build_temp = None ):
639- self .link (CCompiler .SHARED_LIBRARY , objects ,
639+ self .link (CCompiler .SHARED_LIBRARY , objects ,
640640 self .library_filename (output_libname , lib_type = 'shared' ),
641641 output_dir ,
642642 libraries , library_dirs , runtime_library_dirs ,
643643 export_symbols , debug ,
644644 extra_preargs , extra_postargs , build_temp )
645-
645+
646646
647647 def link_shared_object (self ,
648648 objects ,
@@ -673,9 +673,9 @@ def link_executable (self,
673673 debug = 0 ,
674674 extra_preargs = None ,
675675 extra_postargs = None ):
676- self .link (CCompiler .EXECUTABLE , objects ,
676+ self .link (CCompiler .EXECUTABLE , objects ,
677677 self .executable_filename (output_progname ), output_dir ,
678- libraries , library_dirs , runtime_library_dirs , None ,
678+ libraries , library_dirs , runtime_library_dirs , None ,
679679 debug , extra_preargs , extra_postargs , None )
680680
681681
@@ -846,12 +846,12 @@ def mkpath (self, name, mode=0777):
846846 # on a cygwin built python we can use gcc like an ordinary UNIXish
847847 # compiler
848848 ('cygwin.*' , 'unix' ),
849-
849+
850850 # OS name mappings
851851 ('posix' , 'unix' ),
852852 ('nt' , 'msvc' ),
853853 ('mac' , 'mwerks' ),
854-
854+
855855 )
856856
857857def get_default_compiler (osname = None , platform = None ):
@@ -901,15 +901,15 @@ def show_compilers():
901901 # XXX this "knows" that the compiler option it's describing is
902902 # "--compiler", which just happens to be the case for the three
903903 # commands that use it.
904- from distutils .fancy_getopt import FancyGetopt
904+ from distutils .fancy_getopt import FancyGetopt
905905 compilers = []
906906 for compiler in compiler_class .keys ():
907907 compilers .append (("compiler=" + compiler , None ,
908908 compiler_class [compiler ][2 ]))
909909 compilers .sort ()
910910 pretty_printer = FancyGetopt (compilers )
911911 pretty_printer .print_help ("List of available compilers:" )
912-
912+
913913
914914def new_compiler (plat = None ,
915915 compiler = None ,
@@ -932,14 +932,14 @@ def new_compiler (plat=None,
932932 try :
933933 if compiler is None :
934934 compiler = get_default_compiler (plat )
935-
935+
936936 (module_name , class_name , long_description ) = compiler_class [compiler ]
937937 except KeyError :
938938 msg = "don't know how to compile C/C++ code on platform '%s'" % plat
939939 if compiler is not None :
940940 msg = msg + " with '%s' compiler" % compiler
941941 raise DistutilsPlatformError , msg
942-
942+
943943 try :
944944 module_name = "distutils." + module_name
945945 __import__ (module_name )
0 commit comments