]> git.ipfire.org Git - thirdparty/tornado.git/commit
cStringIO's constructor uses a 16-bit encoding when given a unicode
authorBen Darnell <bdarnell@beaker.local>
Wed, 21 Apr 2010 20:57:05 +0000 (13:57 -0700)
committerBen Darnell <bdarnell@beaker.local>
Wed, 21 Apr 2010 20:57:05 +0000 (13:57 -0700)
commitc87e84f068706eca9e078937c8ff5857a72b8331
tree25273ffc5b5c1cb3c3a05bf6997d4a8761a55144
parentb686d6d44617d2dc7df54e8144cadab93ea4c060
cStringIO's constructor uses a 16-bit encoding when given a unicode
string.  This is inconsistent with its write method, which encodes all
strings as ascii (and rejects unicode strings iff they have any
non-ascii characters).  This change uses utf-8 as the default encoding
when constructing cStringIO objects in tornado.
tornado/httpclient.py
tornado/wsgi.py