diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-03 15:18:13 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-03 15:18:13 +0200 |
| commit | 9908201d7fc3340b83db21298033c5b347f38d65 (patch) | |
| tree | 7ee704b3041f1d742f635a9bc4756c321621e76e /django/http/__init__.py | |
| parent | 2407c45c180703f935a2280cb3325beadc2ac8cc (diff) | |
Replaced some byte strings by str() calls
This is a useful trick when Python 2 awaits byte strings and
Python 3 Unicode (regular) strings.
Diffstat (limited to 'django/http/__init__.py')
| -rw-r--r-- | django/http/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py index 19b581f5cb..4c2db74890 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -22,7 +22,7 @@ _cookie_encodes_correctly = http_cookies.SimpleCookie().value_encode(';') == ('; # See ticket #13007, http://bugs.python.org/issue2193 and http://trac.edgewall.org/ticket/2256 _tc = http_cookies.SimpleCookie() try: - _tc.load(b'foo:bar=1') + _tc.load(str('foo:bar=1')) _cookie_allows_colon_in_names = True except http_cookies.CookieError: _cookie_allows_colon_in_names = False |
