aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-23 05:31:26 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-23 05:31:26 +0300
commitc2f6fa508a2a2c3cc0530319977ec1d37166c0da (patch)
treecd925d392369c2fcf6a18d6fdfb57d492ed8b3b6 /library
parentc42bb8cbe034b53a7abe8eb0b28b84f6171776d6 (diff)
downloadydb-c2f6fa508a2a2c3cc0530319977ec1d37166c0da.tar.gz
intermediate changes
ref:7ad50b9c568746e74aa064df7ff309c5798027fc
Diffstat (limited to 'library')
-rw-r--r--library/python/filelock/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/python/filelock/__init__.py b/library/python/filelock/__init__.py
index f81ff67f37..fae89713d3 100644
--- a/library/python/filelock/__init__.py
+++ b/library/python/filelock/__init__.py
@@ -75,7 +75,7 @@ class _WinFileLock(AbstractFileLock):
super(_WinFileLock, self).__init__(path)
self._lock = None
try:
- with file(path, 'w') as lock_file:
+ with open(path, 'w') as lock_file:
lock_file.write(" " * self._LOCKED_BYTES_NUM)
except IOError as e:
if e.errno != errno.EACCES or not os.path.isfile(path):