summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2022-07-30 15:19:18 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2022-07-31 13:29:20 -0700
commitf52f6e99dbf1131886a80112b8c79dfc414afb7c (patch)
tree05cb7d64b2395922f2f24683da49f472075be12c /bin
parent549ba1ed32372c67fc57271cde3797d58b7dec6e (diff)
downloadspack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip
black: reformat entire repository with black
Diffstat (limited to 'bin')
-rw-r--r--bin/haspywin.py8
-rwxr-xr-xbin/spack10
2 files changed, 9 insertions, 9 deletions
diff --git a/bin/haspywin.py b/bin/haspywin.py
index ad28fe0863..e19d902e28 100644
--- a/bin/haspywin.py
+++ b/bin/haspywin.py
@@ -10,11 +10,9 @@ def getpywin():
try:
import win32con # noqa: F401
except ImportError:
- subprocess.check_call(
- [sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"])
- subprocess.check_call(
- [sys.executable, "-m", "pip", "-q", "install", "pywin32"])
+ subprocess.check_call([sys.executable, "-m", "pip", "-q", "install", "--upgrade", "pip"])
+ subprocess.check_call([sys.executable, "-m", "pip", "-q", "install", "pywin32"])
-if __name__ == '__main__':
+if __name__ == "__main__":
getpywin()
diff --git a/bin/spack b/bin/spack
index 537a6a150e..864fb34a77 100755
--- a/bin/spack
+++ b/bin/spack
@@ -77,16 +77,18 @@ if "ruamel" in sys.modules:
try:
import argparse
except ImportError:
- argparse_pyc = os.path.join(spack_external_libs, 'argparse.pyc')
+ argparse_pyc = os.path.join(spack_external_libs, "argparse.pyc")
if not os.path.exists(argparse_pyc):
raise
try:
os.remove(argparse_pyc)
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 '
- 'delete it for you.')
+ 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 "
+ "delete it for you."
+ )
print(msg.format(argparse_pyc))
sys.exit(1)