]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
httputil: Remove extraneous whitespace in str(HTTPHeaders)
authorBen Darnell <ben@bendarnell.com>
Thu, 16 Jun 2016 01:53:34 +0000 (21:53 -0400)
committerBen Darnell <ben@bendarnell.com>
Thu, 16 Jun 2016 01:53:34 +0000 (21:53 -0400)
tornado/httputil.py

index cb5094b37de9b70fb5e96aea6e76b7f054cb1521..9ca840db663ffb16913016b6b19bcee5be2dd755 100644 (file)
@@ -237,8 +237,8 @@ class HTTPHeaders(collections.MutableMapping):
     def __str__(self):
         lines = []
         for name, value in self.get_all():
-            lines.append("%s: %s" % (name, value))
-        return "\n%s\n" % ("\n".join(lines))
+            lines.append("%s: %s\n" % (name, value))
+        return "".join(lines)
 
     __unicode__ = __str__