Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix syntax error under Python 3.2.

  • Loading branch information...
commit 6010b5360f9cb228c19e1d1f85e1b63a11ec6d35 1 parent 9b7455e
@aaugustin aaugustin authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/utils/functional.py
View
6 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):
Please sign in to comment.
Something went wrong with that request. Please try again.