Make Spack core PEP8 compliant.

This commit is contained in:
Todd Gamblin
2016-08-09 13:23:53 -07:00
parent 8061deb883
commit bf1072c902
150 changed files with 1436 additions and 1160 deletions

View File

@@ -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)