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 /SCons/Builder.py | |
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 'SCons/Builder.py')
-rw-r--r-- | SCons/Builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/Builder.py b/SCons/Builder.py index 34bd330..38eadf8 100644 --- a/SCons/Builder.py +++ b/SCons/Builder.py @@ -103,12 +103,12 @@ from collections import UserDict, UserList import SCons.Action import SCons.Debug -from SCons.Debug import logInstanceCreation -from SCons.Errors import InternalError, UserError import SCons.Executor import SCons.Memoize import SCons.Util import SCons.Warnings +from SCons.Debug import logInstanceCreation +from SCons.Errors import InternalError, UserError class _Null: pass |