summaryrefslogtreecommitdiff
path: root/cherrypy/lib/jsontools.py
diff options
context:
space:
mode:
authorGustavo Picon <tabo@tabo.pe>2014-01-12 20:04:16 -0500
committerGustavo Picon <tabo@tabo.pe>2014-01-12 20:04:16 -0500
commit89b473735d830a1eda091da5f726ea74a110f7ea (patch)
tree07c1716a9c20b3366ce70d1b8932a44eb69e8ea1 /cherrypy/lib/jsontools.py
parentebbf43f5ff35c39d5f936b47a5a68d54eaaf27cf (diff)
downloadcherrypy-git-89b473735d830a1eda091da5f726ea74a110f7ea.tar.gz
More PEP8 work.
Diffstat (limited to 'cherrypy/lib/jsontools.py')
-rw-r--r--cherrypy/lib/jsontools.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/lib/jsontools.py b/cherrypy/lib/jsontools.py
index d3dfa5ad..1450806a 100644
--- a/cherrypy/lib/jsontools.py
+++ b/cherrypy/lib/jsontools.py
@@ -65,7 +65,8 @@ def json_handler(*args, **kwargs):
return json_encode(value)
-def json_out(content_type='application/json', debug=False, handler=json_handler):
+def json_out(content_type='application/json', debug=False,
+ handler=json_handler):
"""Wrap request.handler to serialize its output to JSON. Sets Content-Type.
If the given content_type is None, the Content-Type response header