summaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorAlexSm <[email protected]>2024-04-04 11:29:04 +0200
committerGitHub <[email protected]>2024-04-04 11:29:04 +0200
commit8fb01f16663343dae09b4a025a647babdae6914e (patch)
tree84d9497bdc27d17f30e73e0d6762b1e57ae152cf /library/python
parentff661730e2e9c908769fa420502f16e0ed488072 (diff)
parentd5e1b311e2ccaba3dce5f01268ceec074b14a127 (diff)
Merge pull request #3414 from ydb-platform/mergelibs-240403-0851
Library import 240403-0851
Diffstat (limited to 'library/python')
-rw-r--r--library/python/func/__init__.py4
-rw-r--r--library/python/windows/__init__.py2
2 files changed, 4 insertions, 2 deletions
diff --git a/library/python/func/__init__.py b/library/python/func/__init__.py
index 15f2137f1de..5eda75267aa 100644
--- a/library/python/func/__init__.py
+++ b/library/python/func/__init__.py
@@ -25,7 +25,7 @@ def lazy(func):
lock = threading.Lock()
@functools.wraps(func)
- def wrapper(*args):
+ def wrapper(*args, **kwargs):
try:
return result.result
except AttributeError:
@@ -33,7 +33,7 @@ def lazy(func):
try:
return result.result
except AttributeError:
- result.result = func(*args)
+ result.result = func(*args, **kwargs)
return result.result
diff --git a/library/python/windows/__init__.py b/library/python/windows/__init__.py
index 45f061878b3..94083026e39 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