mirror of
https://github.com/python/cpython.git
synced 2025-10-27 03:34:32 +00:00
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:
parent
47d3a7afda
commit
28f46e1839
1 changed files with 41 additions and 41 deletions
|
|
@ -81,14 +81,14 @@ 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,
|
||||||
|
|
@ -120,7 +120,7 @@ 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,
|
||||||
|
|
@ -164,7 +164,7 @@ 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,
|
||||||
|
|
@ -197,7 +197,7 @@ 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,
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue