Make Spack core PEP8 compliant.
This commit is contained in:
@@ -47,6 +47,7 @@ class Lock(object):
|
||||
and recent NFS versions.
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, file_path):
|
||||
self._file_path = file_path
|
||||
self._fd = None
|
||||
@@ -225,6 +226,7 @@ def __exit__(self, type, value, traceback):
|
||||
|
||||
|
||||
class ReadTransaction(LockTransaction):
|
||||
|
||||
def _enter(self):
|
||||
return self._lock.acquire_read(self._timeout)
|
||||
|
||||
@@ -233,6 +235,7 @@ def _exit(self):
|
||||
|
||||
|
||||
class WriteTransaction(LockTransaction):
|
||||
|
||||
def _enter(self):
|
||||
return self._lock.acquire_write(self._timeout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user