Python style conformance: Delete spaces between name of function and arglist.

Making the world better a little bit at a time <wink>.
This commit is contained in:
Jeremy Hylton 2002-06-13 14:58:30 +00:00
parent 47d3a7afda
commit 28f46e1839

View file

@ -81,20 +81,20 @@ class UnixCCompiler (CCompiler):
def __init__ (self, def __init__(self,
verbose=0, verbose=0,
dry_run=0, dry_run=0,
force=0): force=0):
CCompiler.__init__ (self, verbose, dry_run, force) CCompiler.__init__ (self, verbose, dry_run, force)
def preprocess (self, def preprocess(self,
source, source,
output_file=None, output_file=None,
macros=None, macros=None,
include_dirs=None, include_dirs=None,
extra_preargs=None, extra_preargs=None,
extra_postargs=None): extra_postargs=None):
(_, macros, include_dirs) = \ (_, macros, include_dirs) = \
self._fix_compile_args(None, macros, include_dirs) self._fix_compile_args(None, macros, include_dirs)
@ -120,14 +120,14 @@ def preprocess (self,
raise CompileError, msg raise CompileError, msg
def compile (self, def compile(self,
sources, sources,
output_dir=None, output_dir=None,
macros=None, macros=None,
include_dirs=None, include_dirs=None,
debug=0, debug=0,
extra_preargs=None, extra_preargs=None,
extra_postargs=None): extra_postargs=None):
(output_dir, macros, include_dirs) = \ (output_dir, macros, include_dirs) = \
self._fix_compile_args(output_dir, macros, include_dirs) self._fix_compile_args(output_dir, macros, include_dirs)
@ -164,11 +164,11 @@ def compile (self,
# compile () # compile ()
def create_static_lib (self, def create_static_lib(self,
objects, objects,
output_libname, output_libname,
output_dir=None, output_dir=None,
debug=0): debug=0):
(objects, output_dir) = self._fix_object_args(objects, output_dir) (objects, output_dir) = self._fix_object_args(objects, output_dir)
@ -197,19 +197,19 @@ def create_static_lib (self,
# create_static_lib () # create_static_lib ()
def link (self, def link(self,
target_desc, target_desc,
objects, objects,
output_filename, output_filename,
output_dir=None, output_dir=None,
libraries=None, libraries=None,
library_dirs=None, library_dirs=None,
runtime_library_dirs=None, runtime_library_dirs=None,
export_symbols=None, export_symbols=None,
debug=0, debug=0,
extra_preargs=None, extra_preargs=None,
extra_postargs=None, extra_postargs=None,
build_temp=None): build_temp=None):
(objects, output_dir) = self._fix_object_args(objects, output_dir) (objects, output_dir) = self._fix_object_args(objects, output_dir)
(libraries, library_dirs, runtime_library_dirs) = \ (libraries, library_dirs, runtime_library_dirs) = \
@ -250,10 +250,10 @@ def link (self,
# These are all used by the 'gen_lib_options() function, in # These are all used by the 'gen_lib_options() function, in
# ccompiler.py. # ccompiler.py.
def library_dir_option (self, dir): def library_dir_option(self, dir):
return "-L" + dir return "-L" + dir
def runtime_library_dir_option (self, dir): def runtime_library_dir_option(self, dir):
# XXX Hackish, at the very least. See Python bug #445902: # XXX Hackish, at the very least. See Python bug #445902:
# http://sourceforge.net/tracker/index.php # http://sourceforge.net/tracker/index.php
# ?func=detail&aid=445902&group_id=5470&atid=105470 # ?func=detail&aid=445902&group_id=5470&atid=105470
@ -272,11 +272,11 @@ def runtime_library_dir_option (self, dir):
else: else:
return "-R" + dir return "-R" + dir
def library_option (self, lib): def library_option(self, lib):
return "-l" + lib return "-l" + lib
def find_library_file (self, dirs, lib, debug=0): def find_library_file(self, dirs, lib, debug=0):
for dir in dirs: for dir in dirs:
shared = os.path.join( shared = os.path.join(