From 3f4b7479696ed3ae6c8581c185a7fdfeb4bd5acc Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Tue, 28 Feb 2017 14:28:18 -0500 Subject: [PATCH] Silence deprecation warning in __repr__ --- aiohttp/client_reqrep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 8f4fb91da6f..b498e6ef3b4 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -569,7 +569,7 @@ def __del__(self, _warnings=warnings): def __repr__(self): out = io.StringIO() - ascii_encodable_url = str(self.url) + ascii_encodable_url = str(self.url_obj) if self.reason: ascii_encodable_reason = self.reason.encode('ascii', 'backslashreplace') \