Remove unused context manager (#38897)
This commit is contained in:
parent
de719e9a4b
commit
ac5976d17d
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import collections
|
import collections
|
||||||
import contextlib
|
|
||||||
import copy
|
import copy
|
||||||
import functools
|
import functools
|
||||||
import glob
|
import glob
|
||||||
@ -1785,13 +1784,6 @@ def _resource_stage(self, resource):
|
|||||||
resource_stage_folder = "-".join(pieces)
|
resource_stage_folder = "-".join(pieces)
|
||||||
return resource_stage_folder
|
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):
|
def do_install(self, **kwargs):
|
||||||
"""Called by commands to install a package and or its dependencies.
|
"""Called by commands to install a package and or its dependencies.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user