diff options
Diffstat (limited to 'library/python')
| -rw-r--r-- | library/python/func/__init__.py | 4 | ||||
| -rw-r--r-- | library/python/windows/__init__.py | 2 |
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 |
