mirror of
https://github.com/django/django.git
synced 2025-01-18 14:24:39 +00:00
Refs #31949 -- Simplified @sensitive_variables a bit.
Follow up to 38e391e95fe5258bc6d2467332dc9cd44ce6ba52.
This commit is contained in:
parent
38e391e95f
commit
6523860ca8
@ -39,10 +39,7 @@ def sensitive_variables(*variables):
|
||||
|
||||
def decorator(func):
|
||||
if iscoroutinefunction(func):
|
||||
|
||||
@wraps(func)
|
||||
async def sensitive_variables_wrapper(*func_args, **func_kwargs):
|
||||
return await func(*func_args, **func_kwargs)
|
||||
sensitive_variables_wrapper = func
|
||||
|
||||
wrapped_func = func
|
||||
while getattr(wrapped_func, "__wrapped__", None) is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user