changeset 29728 | 1a29db79a98d |
parent 29389 | 98e8313dcd9e |
child 30014 | d34cf260d15b |
--- a/mercurial/sshserver.py Fri Aug 05 14:00:22 2016 -0400 +++ b/mercurial/sshserver.py Fri Aug 05 14:00:30 2016 -0400 @@ -69,11 +69,7 @@ pass def groupchunks(self, changegroup): - while True: - d = changegroup.read(4096) - if not d: - break - yield d + return iter(lambda: changegroup.read(4096), '') def sendresponse(self, v): self.fout.write("%d\n" % len(v))