hgext/largefiles/proto.py
changeset 52644 e627cc25b6f3
parent 52640 24ee91ba9aa8
--- a/hgext/largefiles/proto.py	Sun Jan 05 22:23:31 2025 -0500
+++ b/hgext/largefiles/proto.py	Sun Jan 05 22:26:16 2025 -0500
@@ -83,8 +83,7 @@
     # ssh proto does for string responses.
     def generator():
         yield b'%d\n' % length
-        for chunk in util.filechunkiter(f):
-            yield chunk
+        yield from util.filechunkiter(f)
 
     return wireprototypes.streamreslegacy(gen=generator())