Fix duplicated remote_ip field in HTTPRequest.__repr__

Closes #185.
This commit is contained in:
Ben Darnell 2010-11-30 22:28:53 -08:00
parent 96ecb6603a
commit a18eead89e
1 changed files with 1 additions and 1 deletions

View File

@ -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))