mercurial/logexchange.py
changeset 52644 e627cc25b6f3
parent 51859 f4733654f144
--- a/mercurial/logexchange.py	Sun Jan 05 22:23:31 2025 -0500
+++ b/mercurial/logexchange.py	Sun Jan 05 22:26:16 2025 -0500
@@ -58,10 +58,8 @@
     information, call the respective functions.
     """
 
-    for bmentry in readremotenamefile(repo, b'bookmarks'):
-        yield bmentry
-    for branchentry in readremotenamefile(repo, b'branches'):
-        yield branchentry
+    yield from readremotenamefile(repo, b'bookmarks')
+    yield from readremotenamefile(repo, b'branches')
 
 
 def writeremotenamefile(repo, remotepath, names, nametype):