summaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authorAlexander Smirnov <[email protected]>2024-04-03 08:52:56 +0000
committerAlexander Smirnov <[email protected]>2024-04-03 08:52:56 +0000
commitee3e2a7376c53c6007212fc035efc4572bebd924 (patch)
tree4e6fcbb9764d43754c5837ea907d0f6742a9811a /library/python
parentafb7a6aaa6828d57abdcf8dfdea8581fb98b89ec (diff)
parentd2527272d41073b1399b902b3a59218b894c8022 (diff)
Merge branch 'rightlib' into mergelibs-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