diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/haspywin.py | 2 | ||||
-rwxr-xr-x | bin/spack | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/haspywin.py b/bin/haspywin.py index ea08e74d41..ad28fe0863 100644 --- a/bin/haspywin.py +++ b/bin/haspywin.py @@ -8,7 +8,7 @@ import sys def getpywin(): try: - import win32con # noqa + import win32con # noqa: F401 except ImportError: subprocess.check_call( [sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"]) @@ -82,7 +82,7 @@ except ImportError: raise try: os.remove(argparse_pyc) - import argparse # noqa + import argparse # noqa: F401 except Exception: msg = ('The file\n\n\t{0}\n\nis corrupted and cannot be deleted by Spack. ' 'Either delete it manually or ask some administrator to ' @@ -91,7 +91,7 @@ except ImportError: sys.exit(1) -import spack.main # noqa +import spack.main # noqa: E402 # Once we've set up the system path, run the spack main method if __name__ == "__main__": |