]> git.ipfire.org Git - thirdparty/tornado.git/commit
Add tornado.escape.native_str() for dealing with python 2 vs 3 issues.
authorBen Darnell <ben@bendarnell.com>
Sun, 15 May 2011 23:58:29 +0000 (16:58 -0700)
committerBen Darnell <ben@bendarnell.com>
Sun, 15 May 2011 23:58:29 +0000 (16:58 -0700)
commitbd1c8ca6ca4f8f1fe5a15b791937c479ec1a3fba
treebc3248695f0d23b4c7d928251218cdcf5dcef199
parent6894ba7c21e7a888333faae00832f1409f6ff5e5
Add tornado.escape.native_str() for dealing with python 2 vs 3 issues.

Rename _unicode() to to_unicode() so it doesn't look private, make its
implementation match utf8(), and document both functions.
tornado/escape.py