]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fix typo: "javscript" 1376/head
authorVladimir Rutsky <rutsky@users.noreply.github.com>
Thu, 12 Mar 2015 10:34:27 +0000 (13:34 +0300)
committerVladimir Rutsky <rutsky@users.noreply.github.com>
Thu, 12 Mar 2015 10:34:27 +0000 (13:34 +0300)
tornado/escape.py

index 24be2264ba85b54ee8efaf24c58ccafc7e6bd335..2852cf517bfa5de40c2bb15ff8fed31ff1cf7052 100644 (file)
@@ -82,7 +82,7 @@ def json_encode(value):
     # JSON permits but does not require forward slashes to be escaped.
     # This is useful when json data is emitted in a <script> tag
     # in HTML, as it prevents </script> tags from prematurely terminating
-    # the javscript.  Some json libraries do this escaping by default,
+    # the javascript.  Some json libraries do this escaping by default,
     # although python's standard library does not, so we do it here.
     # http://stackoverflow.com/questions/1580647/json-why-are-forward-slashes-escaped
     return json.dumps(value).replace("</", "<\\/")