1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Normalized imports of functools.wraps.

@wraps is 10 times more common than @functools.wraps. Standardize to
the most common version.
This commit is contained in:
Aymeric Augustin
2022-05-22 08:23:10 +02:00
committed by Mariusz Felisiak
parent 6485894157
commit aff649a3bd
4 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
import functools
import os
from functools import wraps
from django.template.engine import Engine
from django.test.utils import override_settings
@@ -46,7 +46,7 @@ def setup(templates, *args, test_once=False):
# Make Engine.get_default() raise an exception to ensure that tests
# are properly isolated from Django's global settings.
@override_settings(TEMPLATES=None)
@functools.wraps(func)
@wraps(func)
def inner(self):
# Set up custom template tag libraries if specified
libraries = getattr(self, "libraries", {})