From 521d9c2ced99ae1865c740707ef587de6b0e5781 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 10 Jan 2009 22:53:35 +0000 Subject: [PATCH] pydoc should be in the function git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5903 212acab6-be3b-0410-9dea-997c60f758d6 --- SCons/utils.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/SCons/utils.py b/SCons/utils.py index 86e638df..02f68ee9 100644 --- a/SCons/utils.py +++ b/SCons/utils.py @@ -1,8 +1,8 @@ -""" -Scans through a list list of libraries and adds -available libraries to the environment. -""" def AddAvailableLibs(env, libs): + """ + Scans through a list list of libraries and adds + available libraries to the environment. + """ conf = env.Configure() for lib in libs: @@ -10,11 +10,11 @@ def AddAvailableLibs(env, libs): conf.Finish() -""" -Scans through a list list of libraries and adds -available libraries to the environment. -""" def GetAvailableLibs(env, libs): + """ + Scans through a list list of libraries and adds + available libraries to the environment. + """ conf = env.Configure() avail_libs = [] @@ -26,10 +26,10 @@ def GetAvailableLibs(env, libs): return avail_libs -""" -Checks if a compiler flag is valid. -""" def check_compile_flag(ctx, flag): + """ + Checks if a compiler flag is valid. + """ ctx.Message('Checking for compiler flag %s... ' % flag) old_flags = ctx.env['CCFLAGS'] @@ -49,10 +49,10 @@ def check_compile_flag(ctx, flag): return result -""" -Checks if a linker flag is valid. -""" def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None): + """ + Checks if a linker flag is valid. + """ ctx.Message('Checking for linker flag %s... ' % flag) old_flags = ctx.env['LINKFLAGS'] @@ -79,12 +79,12 @@ def check_link_flag(ctx, flag, run = 0, extension = '.c', code = None): return result -""" -Wrapper for env.Configure which adds two new tests: - CheckCompileFlag - checks for a compiler flag - CheckLinkFlag - checks for a linker flag -""" def FlagsConfigure(env): + """ + Wrapper for env.Configure which adds two new tests: + CheckCompileFlag - checks for a compiler flag + CheckLinkFlag - checks for a linker flag + """ return env.Configure(custom_tests = { 'CheckCompileFlag' : check_compile_flag, 'CheckLinkFlag': check_link_flag }) Export('AddAvailableLibs FlagsConfigure GetAvailableLibs')