]> git.ipfire.org Git - thirdparty/tornado.git/commit
In finish(), test if chunk is None rather than using truthiness to decide
authorBen Darnell <bdarnell@beaker.local>
Sun, 7 Mar 2010 20:47:52 +0000 (12:47 -0800)
committerBen Darnell <bdarnell@beaker.local>
Sun, 7 Mar 2010 20:47:52 +0000 (12:47 -0800)
commit45f76c518eaf032c40fd39cc1384577742e5dd4d
tree2d72647f168cf59c143b0ce0b3dc570385df78b3
parent8637a738ef1bd3d4236f64329d4956b641edc1a6
In finish(), test if chunk is None rather than using truthiness to decide
whether to call write().

This fixes a discrepancy between finish() and write() when outputting json.
Now both write({}) and finish({}) will output an empty json object.
tornado/web.py