diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-28 21:13:09 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-28 21:13:09 +0200 |
| commit | 28e424532fdeaf05053e1b531eeacbfa831af1fb (patch) | |
| tree | f12bb5ad13a25b06ff2158a41e75d26202b11d47 /django/utils/cache.py | |
| parent | a535040bfac30766cb475054dac5a6359073e48b (diff) | |
Removed unneeded smart_str in cache utils.
Diffstat (limited to 'django/utils/cache.py')
| -rw-r--r-- | django/utils/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/cache.py b/django/utils/cache.py index 7ef3680db2..8b81a2ffa2 100644 --- a/django/utils/cache.py +++ b/django/utils/cache.py @@ -23,7 +23,7 @@ import time from django.conf import settings from django.core.cache import get_cache -from django.utils.encoding import smart_str, iri_to_uri, force_unicode +from django.utils.encoding import iri_to_uri, force_unicode from django.utils.http import http_date from django.utils.timezone import get_current_timezone_name from django.utils.translation import get_language @@ -53,7 +53,7 @@ def patch_cache_control(response, **kwargs): if t[1] is True: return t[0] else: - return t[0] + '=' + smart_str(t[1]) + return '%s=%s' % (t[0], t[1]) if response.has_header('Cache-Control'): cc = cc_delim_re.split(response['Cache-Control']) |
