diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-07-14 18:41:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 18:41:30 +0200 |
commit | ac5976d17df64726e64b16b6f788a995da5b5069 (patch) | |
tree | 8411fa55564a2b3a8d8433a67d9debaaaa25f820 /lib | |
parent | de719e9a4b1b2d393a48485f1d459170ca2e9a82 (diff) | |
download | spack-ac5976d17df64726e64b16b6f788a995da5b5069.tar.gz spack-ac5976d17df64726e64b16b6f788a995da5b5069.tar.bz2 spack-ac5976d17df64726e64b16b6f788a995da5b5069.tar.xz spack-ac5976d17df64726e64b16b6f788a995da5b5069.zip |
Remove unused context manager (#38897)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package_base.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/spack/spack/package_base.py b/lib/spack/spack/package_base.py index c4bc513443..149aaf3623 100644 --- a/lib/spack/spack/package_base.py +++ b/lib/spack/spack/package_base.py @@ -11,7 +11,6 @@ packages. import base64 import collections -import contextlib import copy import functools import glob @@ -1785,13 +1784,6 @@ class PackageBase(WindowsRPath, PackageViewMixin, metaclass=PackageMeta): resource_stage_folder = "-".join(pieces) return resource_stage_folder - @contextlib.contextmanager - def _stage_and_write_lock(self): - """Prefix lock nested in a stage.""" - with self.stage: - with spack.store.db.prefix_write_lock(self.spec): - yield - def do_install(self, **kwargs): """Called by commands to install a package and or its dependencies. |