From: Tom Christie Date: Tue, 14 May 2019 13:35:47 +0000 (+0100) Subject: repr change: -> X-Git-Tag: 0.3.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d5fca8237cbc53de46aec8b0c25e361e5c41eb;p=thirdparty%2Fhttpx.git repr change: -> --- diff --git a/httpcore/models.py b/httpcore/models.py index 421f19e8..946ae166 100644 --- a/httpcore/models.py +++ b/httpcore/models.py @@ -744,8 +744,7 @@ class Response: raise HttpError(message) def __repr__(self) -> str: - class_name = self.__class__.__name__ - return f"<{class_name}({self.status_code}, {self.reason_phrase!r})>" + return f"" class SyncResponse: @@ -824,5 +823,4 @@ class SyncResponse: return self._loop.run_until_complete(self._response.close()) def __repr__(self) -> str: - class_name = self.__class__.__name__ - return f"<{class_name}({self.status_code}, {self.reason_phrase!r})>" + return f"" diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 76f2a5bd..820efec1 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -37,7 +37,7 @@ def test_get(server): assert response.request.url == httpcore.URL(url) assert response.headers assert response.is_redirect is False - assert repr(response) == "" + assert repr(response) == "" @threadpool