From 53c38fb0156bfb3e5932de44d4a0ed9f47f1cc23 Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Thu, 28 Mar 2024 12:06:19 +0300 Subject: Intermediate changes --- library/python/windows/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'library/python') 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 -- cgit v1.3 From 73c78e63703013863db96d6dc42db94dcb6cbb16 Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Thu, 28 Mar 2024 17:28:22 +0300 Subject: Intermediate changes --- library/python/func/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/python') 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 -- cgit v1.3