aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/filelock
diff options
context:
space:
mode:
authorwawaka <wawaka@yandex-team.ru>2022-02-10 16:47:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:48 +0300
commited524783c88c81047033c5d6e5543db3a2251ad5 (patch)
tree5c595c0ac1b14fbb70e7e71df44b52e47f850387 /library/python/filelock
parent11ec0273ab97c87692cd0004865c7f24d14f9902 (diff)
downloadydb-ed524783c88c81047033c5d6e5543db3a2251ad5.tar.gz
Restoring authorship annotation for <wawaka@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/filelock')
-rw-r--r--library/python/filelock/__init__.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/library/python/filelock/__init__.py b/library/python/filelock/__init__.py
index f81ff67f37..c47fa9c28b 100644
--- a/library/python/filelock/__init__.py
+++ b/library/python/filelock/__init__.py
@@ -1,10 +1,10 @@
import errno
import logging
import os
-import sys
-
+import sys
+
import library.python.windows
-
+
logger = logging.getLogger(__name__)
@@ -18,22 +18,22 @@ def set_close_on_exec(stream):
class AbstractFileLock(object):
- def __init__(self, path):
- self.path = path
-
+ def __init__(self, path):
+ self.path = path
+
def acquire(self, blocking=True):
raise NotImplementedError
-
- def release(self):
+
+ def release(self):
raise NotImplementedError
-
- def __enter__(self):
- self.acquire()
- return self
-
- def __exit__(self, type, value, traceback):
- self.release()
-
+
+ def __enter__(self):
+ self.acquire()
+ return self
+
+ def __exit__(self, type, value, traceback):
+ self.release()
+
class _NixFileLock(AbstractFileLock):