summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xmlrpc/client.py')
-rw-r--r--Lib/xmlrpc/client.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index bef23f4..ea8da76 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -1339,10 +1339,7 @@ class Transport:
p, u = self.getparser()
- while 1:
- data = stream.read(1024)
- if not data:
- break
+ while data := stream.read(1024):
if self.verbose:
print("body:", repr(data))
p.feed(data)