From: Yusuf Simonson Date: Fri, 31 May 2013 18:05:57 +0000 (-0400) Subject: Do not include body in HTTPRequest's __repr__ X-Git-Tag: v3.1.0~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9036f061e823d89a7a2e5389f4efbee77b6c1d25;p=thirdparty%2Ftornado.git Do not include body in HTTPRequest's __repr__ --- diff --git a/tornado/httpserver.py b/tornado/httpserver.py index 5beebda51..d005545e8 100644 --- a/tornado/httpserver.py +++ b/tornado/httpserver.py @@ -523,8 +523,7 @@ class HTTPRequest(object): return None def __repr__(self): - attrs = ("protocol", "host", "method", "uri", "version", "remote_ip", - "body") + attrs = ("protocol", "host", "method", "uri", "version", "remote_ip") args = ", ".join(["%s=%r" % (n, getattr(self, n)) for n in attrs]) return "%s(%s, headers=%s)" % ( self.__class__.__name__, args, dict(self.headers))