mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
[1.6.x] Replaced "not PY3" by "PY2", new in six 1.4.0.
Conflicts:
django/db/backends/oracle/base.py
django/db/backends/sqlite3/base.py
django/db/models/base.py
Backport of 365c3e8b from master.
This commit is contained in:
@@ -49,7 +49,7 @@ else:
|
||||
if not _cookie_allows_colon_in_names:
|
||||
def load(self, rawdata):
|
||||
self.bad_cookies = set()
|
||||
if not six.PY3 and isinstance(rawdata, six.text_type):
|
||||
if six.PY2 and isinstance(rawdata, six.text_type):
|
||||
rawdata = force_str(rawdata)
|
||||
super(SimpleCookie, self).load(rawdata)
|
||||
for key in self.bad_cookies:
|
||||
|
||||
Reference in New Issue
Block a user