diff -r 5cc8deb96b48 -r e627cc25b6f3 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Sun Jan 05 22:23:31 2025 -0500 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Jan 05 22:26:16 2025 -0500 @@ -382,8 +382,7 @@ profile = self.ui.configbool(b'profiling', b'enabled') with profiling.profile(self.ui, enabled=profile): try: - for r in self._runwsgi(req, res): - yield r + yield from self._runwsgi(req, res) finally: # There are known cycles in localrepository that prevent # those objects (and tons of held references) from being @@ -452,8 +451,7 @@ def _virtualdirs(): # Check the full virtual path, and each parent yield virtual - for p in pathutil.finddirs(virtual): - yield p + yield from pathutil.finddirs(virtual) for virtualrepo in _virtualdirs(): real = repos.get(virtualrepo)