]> git.ipfire.org Git - thirdparty/tornado.git/commit
New method to_basestring replaces some use of native_str.
authorBen Darnell <ben@bendarnell.com>
Thu, 16 Jun 2011 02:34:49 +0000 (19:34 -0700)
committerBen Darnell <ben@bendarnell.com>
Thu, 16 Jun 2011 02:34:49 +0000 (19:34 -0700)
commitdb579dad715b99bc70687a5f5b5e319eb7dbcaba
tree31762657357c9cbf62977dccc1b5ad73dbc0061e
parent3d64c890f3ef55e525364ac3c8096ad0ec2271af
New method to_basestring replaces some use of native_str.

native_str would force the argument to (utf8) bytes, while in python2
it is often more appropriate to preserve the type of the input data.

Closes #280
tornado/escape.py
tornado/test/escape_test.py