Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unneeded smart_str in cache utils.

  • Loading branch information...
commit 28e424532fdeaf05053e1b531eeacbfa831af1fb 1 parent a535040
@claudep claudep authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/
4 django/utils/
@@ -23,7 +23,7 @@
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 dictvalue(t):
if t[1] is True:
return t[0]
- 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'])
Please sign in to comment.
Something went wrong with that request. Please try again.