]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix simple typo in httpclient exception message 1343/head
authorBrian Browning <bwbrowning@gmail.com>
Fri, 20 Feb 2015 00:17:46 +0000 (16:17 -0800)
committerBrian Browning <bwbrowning@gmail.com>
Fri, 20 Feb 2015 00:17:46 +0000 (16:17 -0800)
Unelss should be unless

tornado/simple_httpclient.py

index ffa03ea686659a76e6cc6117f8f689933962ef94..f3cb1b8666f47b8504c7e5e12975bb19040a1332 100644 (file)
@@ -331,7 +331,7 @@ class _HTTPConnection(httputil.HTTPMessageDelegate):
             if ((body_expected and not body_present) or
                     (body_present and not body_expected)):
                 raise ValueError(
-                    'Body must %sbe None for method %s (unelss '
+                    'Body must %sbe None for method %s (unless '
                     'allow_nonstandard_methods is true)' %
                     ('not ' if body_expected else '', self.request.method))
         if self.request.expect_100_continue: