Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed unneeded smart_str in cache utils.

  • Loading branch information...
commit 28e424532fdeaf05053e1b531eeacbfa831af1fb 1 parent a535040
Claude Paroz authored May 28, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/utils/cache.py
4  django/utils/cache.py
@@ -23,7 +23,7 @@
23 23
 
24 24
 from django.conf import settings
25 25
 from django.core.cache import get_cache
26  
-from django.utils.encoding import smart_str, iri_to_uri, force_unicode
  26
+from django.utils.encoding import iri_to_uri, force_unicode
27 27
 from django.utils.http import http_date
28 28
 from django.utils.timezone import get_current_timezone_name
29 29
 from django.utils.translation import get_language
@@ -53,7 +53,7 @@ def dictvalue(t):
53 53
         if t[1] is True:
54 54
             return t[0]
55 55
         else:
56  
-            return t[0] + '=' + smart_str(t[1])
  56
+            return '%s=%s' % (t[0], t[1])
57 57
 
58 58
     if response.has_header('Cache-Control'):
59 59
         cc = cc_delim_re.split(response['Cache-Control'])

0 notes on commit 28e4245

Please sign in to comment.
Something went wrong with that request. Please try again.