summaryrefslogtreecommitdiff
path: root/cherrypy/lib/jsontools.py
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2016-09-08 16:12:31 +0300
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2016-09-08 16:12:31 +0300
commitdc574c422886d192b33a48b036d0e9839c3cc6e0 (patch)
treec2f25676df9d99ee26521367aa1e01692d788a86 /cherrypy/lib/jsontools.py
parent2035500ef638a079665a29548aea74761d8877ef (diff)
downloadcherrypy-git-dc574c422886d192b33a48b036d0e9839c3cc6e0.tar.gz
Convert all strings to conform single-quoted style
pre-commit run double-quote-string-fixer --all-files
Diffstat (limited to 'cherrypy/lib/jsontools.py')
-rw-r--r--cherrypy/lib/jsontools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/jsontools.py b/cherrypy/lib/jsontools.py
index 52f1f622..91ea74e1 100644
--- a/cherrypy/lib/jsontools.py
+++ b/cherrypy/lib/jsontools.py
@@ -4,7 +4,7 @@ from cherrypy._cpcompat import text_or_bytes, ntou, json_encode, json_decode
def json_processor(entity):
"""Read application/json data into request.json."""
- if not entity.headers.get(ntou("Content-Length"), ntou("")):
+ if not entity.headers.get(ntou('Content-Length'), ntou('')):
raise cherrypy.HTTPError(411)
body = entity.fp.read()