diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-21 11:49:00 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-09-21 13:41:03 -0400 |
commit | 4dbbb4884c205a1b82ac0deb9c751161a44534fd (patch) | |
tree | 7f07b1623688aaa99998ad3f4678cce26f62f1ae /mesonbuild/modules/windows.py | |
parent | bb25260f001c741d419f5732da4431a548b0749d (diff) | |
download | meson-4dbbb4884c205a1b82ac0deb9c751161a44534fd.zip meson-4dbbb4884c205a1b82ac0deb9c751161a44534fd.tar.gz meson-4dbbb4884c205a1b82ac0deb9c751161a44534fd.tar.bz2 |
flake8: Clean up complained-about unused imports
This also adds a "# noqa: F401" comment on an unused "import lzma",
which we are using it in a try/except block that is being used to
check if the lzma module is importable; of course it is unused.
v2: This turned out to be a little tricky.
mesonbuild/modules/__init__.py had the "unused" import:
from ..interpreterbase import permittedKwargs, noKwargs
However, that meant that the various modules could do things like:
from . import noKwargs # "." is "mesonbuild.modules"
Which breaks when you remove __init__.py's "unused" import. I
could have tagged that import with "# noqa: F401", but instead I
chose to have each of the module import directly from
"..interpreterbase" instead of ".".
Diffstat (limited to 'mesonbuild/modules/windows.py')
-rw-r--r-- | mesonbuild/modules/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index ab215dc..c16d7a8 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -20,7 +20,7 @@ from ..mesonlib import MesonException, extract_as_list from . import get_include_args from . import ModuleReturnValue from . import ExtensionModule -from . import permittedKwargs +from ..interpreterbase import permittedKwargs class WindowsModule(ExtensionModule): |