From 510d206922183389a0ed644f59ddc0f8daa055e6 Mon Sep 17 00:00:00 2001 From: Walt Date: Thu, 6 Jul 2023 07:17:45 -0400 Subject: [PATCH] Changed readall() to read() to be compatible with Python 3.5+ --- ipplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipplib.py b/ipplib.py index 7625cbf..43f8df5 100644 --- a/ipplib.py +++ b/ipplib.py @@ -636,7 +636,7 @@ def _construct_uri(self, namespace: str, ipp_object: str): def _get_response_data(self): response = self._connection.getresponse() if response.getcode() == 200: - return response.readall() + return response.read() else: raise IppTransportException('Error: {0}'.format(response.getcode()))