diff options
author | Mats Wichmann <mats@linux.com> | 2021-05-05 14:37:22 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-05-05 17:33:26 (GMT) |
commit | d7b1df36e2faf84c2b1789658300ceef90605997 (patch) | |
tree | 19d526d9ba9a771f305578f852fa2e6d01894f59 /site_scons | |
parent | f046cf47ded412a0b96edb560ed7bb2daf72ccfb (diff) | |
download | SCons-d7b1df36e2faf84c2b1789658300ceef90605997.zip SCons-d7b1df36e2faf84c2b1789658300ceef90605997.tar.gz SCons-d7b1df36e2faf84c2b1789658300ceef90605997.tar.bz2 |
Fix some imports and other checker warnings
* Removed a number of imports reported as unused.
* Reorganize imports in a few places.
* Checker reported warnings problems ("Instantiating an exception,
but not raising it, has no effect"): serveral tool modules instantiated
a warning class thinking (?) it would issue the warning; changed these to
the standard use - calling the warn() function with the warnclass as an arg.
* Tool modules that were touched had the copyright header munging applied.
* Removed irritating "####" lines from gettext and msgfmt tools.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/site_init.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/site_scons/site_init.py b/site_scons/site_init.py index 336cad6..faaa010 100644 --- a/site_scons/site_init.py +++ b/site_scons/site_init.py @@ -7,12 +7,12 @@ from Utilities import is_windows, whereis, platform, deb_date from soe_utils import soelim, soscan, soelimbuilder # from epydoc import epydoc_cli, epydoc_commands from BuildCommandLine import BuildCommandLine -from scons_local_package import install_local_package_files, create_local_packages -from update_build_info import update_init_file +#from scons_local_package import install_local_package_files, create_local_packages +# from update_build_info import update_init_file gzip = whereis('gzip') git = os.path.exists('.git') and whereis('git') unzip = whereis('unzip') zip_path = whereis('zip') -BuildCommandLine.git = git
\ No newline at end of file +BuildCommandLine.git = git |