Skip to content

Commit

Permalink
Fix syntax error under Python 3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Nov 11, 2013
1 parent 9b7455e commit 6010b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/utils/functional.py
Expand Up @@ -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):
Expand Down

0 comments on commit 6010b53

Please sign in to comment.