From: Ben Darnell Date: Thu, 16 Jun 2016 01:53:34 +0000 (-0400) Subject: httputil: Remove extraneous whitespace in str(HTTPHeaders) X-Git-Tag: v4.4.0b1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72896e1f62bdbadd6a4e0a5745058b96080ce187;p=thirdparty%2Ftornado.git httputil: Remove extraneous whitespace in str(HTTPHeaders) --- diff --git a/tornado/httputil.py b/tornado/httputil.py index cb5094b37..9ca840db6 100644 --- a/tornado/httputil.py +++ b/tornado/httputil.py @@ -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__