diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2022-05-22 08:23:10 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-25 10:58:28 +0200 |
commit | aff649a3bd0c4fd8f7d859464f0eb907e877443f (patch) | |
tree | bb7e4e8a385be65f15f6d3fdf2438c92afa3703a /django/views | |
parent | 6485894157949338d76ca9a0da0b4c9cfef40e10 (diff) | |
download | django-aff649a3bd0c4fd8f7d859464f0eb907e877443f.tar.gz |
Normalized imports of functools.wraps.
@wraps is 10 times more common than @functools.wraps. Standardize to
the most common version.
Diffstat (limited to 'django/views')
-rw-r--r-- | django/views/decorators/debug.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/views/decorators/debug.py b/django/views/decorators/debug.py index 5cf8db891f..5578a4995f 100644 --- a/django/views/decorators/debug.py +++ b/django/views/decorators/debug.py @@ -1,4 +1,4 @@ -import functools +from functools import wraps from django.http import HttpRequest @@ -33,7 +33,7 @@ def sensitive_variables(*variables): ) def decorator(func): - @functools.wraps(func) + @wraps(func) def sensitive_variables_wrapper(*func_args, **func_kwargs): if variables: sensitive_variables_wrapper.sensitive_variables = variables @@ -77,7 +77,7 @@ def sensitive_post_parameters(*parameters): ) def decorator(view): - @functools.wraps(view) + @wraps(view) def sensitive_post_parameters_wrapper(request, *args, **kwargs): if not isinstance(request, HttpRequest): raise TypeError( |