diff options
author | Mats Wichmann <mats@linux.com> | 2020-10-18 00:10:59 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-11-16 20:44:28 (GMT) |
commit | 919c9a3645e9c1444bc1c375c5389a95b4afaab6 (patch) | |
tree | 54dae0736629912604e8899226bb3666d8dea109 /SCons/SConfTests.py | |
parent | f278c1e3c8a1cab4c8d9380e5e55128702e493c8 (diff) | |
download | SCons-919c9a3645e9c1444bc1c375c5389a95b4afaab6.zip SCons-919c9a3645e9c1444bc1c375c5389a95b4afaab6.tar.gz SCons-919c9a3645e9c1444bc1c375c5389a95b4afaab6.tar.bz2 |
Remove some "star imports"
Usually, it's unit tests that do this, and it's not really crucial
to kill those off, but checkers do complain, including sider if you
touch anything in one of those files.
In SCons/Environment,py, removed all SCons.Util prefixes, than turned the
import of Util into a star import, running a tool on that then changes
it to import only the used symbols from Util. Since there are lots,
that ought to be a small performance win, since it doesn't have to do
namespace lookups on SCons.Util.
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/SConfTests.py')
-rw-r--r-- | SCons/SConfTests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/SConfTests.py b/SCons/SConfTests.py index b8ee7d2..a6fe508 100644 --- a/SCons/SConfTests.py +++ b/SCons/SConfTests.py @@ -27,7 +27,7 @@ import io import os import re import sys -from types import * +from types import ModuleType import unittest import TestCmd |