Fix syntax error under Python 3.2.

This commit is contained in:
Aymeric Augustin 2013-11-11 10:43:17 +01:00
parent 9b7455e918
commit 6010b5360f
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ def memoize(func, cache, num_args):
Only the first num_args are considered when creating the key. Only the first num_args are considered when creating the key.
""" """
warnings.warn(u"memoize wrapper is deprecated and will be removed in " warnings.warn("memoize wrapper is deprecated and will be removed in "
u"Django 1.9. Use django.utils.lru_cache instead.", "Django 1.9. Use django.utils.lru_cache instead.",
PendingDeprecationWarning, 2) PendingDeprecationWarning, stacklevel=2)
@wraps(func) @wraps(func)
def wrapper(*args): def wrapper(*args):