mercurial/store.py
changeset 52644 e627cc25b6f3
parent 52643 5cc8deb96b48
child 52645 4cb75772818d
--- a/mercurial/store.py	Sun Jan 05 22:23:31 2025 -0500
+++ b/mercurial/store.py	Sun Jan 05 22:26:16 2025 -0500
@@ -126,12 +126,9 @@
     these characters will be escaped by encodefunctions
     """
     winreserved = [ord(x) for x in '\\:*?"<>|']
-    for x in range(32):
-        yield x
-    for x in range(126, 256):
-        yield x
-    for x in winreserved:
-        yield x
+    yield from range(32)
+    yield from range(126, 256)
+    yield from winreserved
 
 
 def _buildencodefun():
@@ -928,10 +925,8 @@
         are passed with matches the matcher
         """
         # yield data files first
-        for x in self.data_entries(matcher):
-            yield x
-        for x in self.top_entries(phase=phase, obsolescence=obsolescence):
-            yield x
+        yield from self.data_entries(matcher)
+        yield from self.top_entries(phase=phase, obsolescence=obsolescence)
 
     def copylist(self):
         return _data