aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-03-28 12:06:19 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-03-28 12:21:27 +0300
commit53c38fb0156bfb3e5932de44d4a0ed9f47f1cc23 (patch)
tree6f7eeeb691fd3e5822a4f855339cb5eb236f03be /library
parent6eca1ae0168122daab4d783907f6769a5e639329 (diff)
downloadydb-53c38fb0156bfb3e5932de44d4a0ed9f47f1cc23.tar.gz
Intermediate changes
Diffstat (limited to 'library')
-rw-r--r--library/python/windows/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/python/windows/__init__.py b/library/python/windows/__init__.py
index 45f061878b..94083026e3 100644
--- a/library/python/windows/__init__.py
+++ b/library/python/windows/__init__.py
@@ -61,6 +61,7 @@ def win_only(f):
def win_disabled(f):
"""Decorator for functions disabled on Windows"""
+
def f_wrapped(*args, **kwargs):
if on_win():
run_disabled()
@@ -92,6 +93,7 @@ def diehard(winerrors, tries=100, delay=1):
On non-Windows platforms fallbacks to function itself
"""
+
def wrap(f):
if not on_win():
return f