From 9036f061e823d89a7a2e5389f4efbee77b6c1d25 Mon Sep 17 00:00:00 2001 From: Yusuf Simonson Date: Fri, 31 May 2013 14:05:57 -0400 Subject: [PATCH] Do not include body in HTTPRequest's __repr__ --- tornado/httpserver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) -- 2.47.2