summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-11-11 10:43:17 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-11-11 10:43:17 +0100
commit6010b5360f9cb228c19e1d1f85e1b63a11ec6d35 (patch)
tree56d95d56d70b5b78f077965ce6ad5ac06f674761 /django/utils
parent9b7455e918a437c3db91e88dcbf6d9c93fef96f8 (diff)
Fix syntax error under Python 3.2.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/functional.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index d52323b220..51bbcf0fc9 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -25,9 +25,9 @@ def memoize(func, cache, num_args):
Only the first num_args are considered when creating the key.
"""
- warnings.warn(u"memoize wrapper is deprecated and will be removed in "
- u"Django 1.9. Use django.utils.lru_cache instead.",
- PendingDeprecationWarning, 2)
+ warnings.warn("memoize wrapper is deprecated and will be removed in "
+ "Django 1.9. Use django.utils.lru_cache instead.",
+ PendingDeprecationWarning, stacklevel=2)
@wraps(func)
def wrapper(*args):