diff options
author | Mats Wichmann <mats@linux.com> | 2021-06-05 12:33:19 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-06-07 17:34:15 (GMT) |
commit | 69dcebbd2deb8cb0fbb37be550362a1f1aa78666 (patch) | |
tree | 898184d74f88e7085913ed63080c17a671d5b16b /SCons/Tool/MSCommon/netframework.py | |
parent | 0d9a99d630169277689e95e39ae64ccf9b9215bf (diff) | |
download | SCons-69dcebbd2deb8cb0fbb37be550362a1f1aa78666.zip SCons-69dcebbd2deb8cb0fbb37be550362a1f1aa78666.tar.gz SCons-69dcebbd2deb8cb0fbb37be550362a1f1aa78666.tar.bz2 |
Reduce pylint complaints about Util
Fix up UniqueList - remves a Py2-era method and correct args on others;
add a __repr__ which does the uniquing.
Add "we know what we're doing" pylint comments on apparent redefinitions
of builtins and globals that the type tests and type converters do.
Add some more pylint comments on "local" (rather than top of file) imports.
Remove WindowsError reference (necessitated changing some tool code
as well) - partial fix for #3939, WinodwsError is no longer distinct
Simplified semi-deepcopy stuff (and quieted complaints)
Add class docstrings and fixup some docstrings.
AddMethod examples had reversed arguments - now rendered as a
doctest, and actually works. Fixed up other examples to (mostly)
be doctest as well.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Tool/MSCommon/netframework.py')
-rw-r--r-- | SCons/Tool/MSCommon/netframework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Tool/MSCommon/netframework.py b/SCons/Tool/MSCommon/netframework.py index b40576a..5e2c33a 100644 --- a/SCons/Tool/MSCommon/netframework.py +++ b/SCons/Tool/MSCommon/netframework.py @@ -41,7 +41,7 @@ def find_framework_root(): try: froot = read_reg(_FRAMEWORKDIR_HKEY_ROOT) debug("Found framework install root in registry: {}".format(froot)) - except SCons.Util.WinError as e: + except OSError: debug("Could not read reg key {}".format(_FRAMEWORKDIR_HKEY_ROOT)) return None |