From: Ben Darnell Date: Wed, 1 Dec 2010 06:28:53 +0000 (-0800) Subject: Fix duplicated remote_ip field in HTTPRequest.__repr__ X-Git-Tag: v1.2.0~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a18eead89e6a31175abd60964a05da365139cab3;p=thirdparty%2Ftornado.git Fix duplicated remote_ip field in HTTPRequest.__repr__ Closes #185. --- diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 2018d279f..aa88843f7 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -523,7 +523,7 @@ class HTTPRequest(object): def __repr__(self): attrs = ("protocol", "host", "method", "uri", "version", "remote_ip", - "remote_ip", "body") + "body") args = ", ".join(["%s=%r" % (n, getattr(self, n)) for n in attrs]) return "%s(%s, headers=%s)" % ( self.__class__.__name__, args, dict(self.headers))