]> git.ipfire.org Git - thirdparty/tornado.git/commit
coerce kwarg keys to str 454/head
authorMinRK <benjaminrk@gmail.com>
Thu, 2 Feb 2012 22:05:59 +0000 (14:05 -0800)
committerMinRK <benjaminrk@gmail.com>
Thu, 2 Feb 2012 22:05:59 +0000 (14:05 -0800)
commit0b75124bb2e545b5d42c89a05fa87d1d616ecaed
treebca738416bfabd599e3aadbacaead1e4d3c4174d
parentffc9b3d4e3f52cb8c0fb9f57cdcb941f39c6e6fc
coerce kwarg keys to str

If handler regex is unicode, the keys of groupdict are unicode, but should be
str, as Python < 2.6.5 does not accept unicode keys in:

    _execute(*args, **kwargs)

Since they are for keyword args, they will be valid identifiers, and thus ascii.
tornado/web.py