bundlerepo: fix string interpolation
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 24 Feb 2023 03:03:54 +0100
changeset 50201 149f09ffef46
parent 50200 197204dba8a2
child 50202 fef5bca96513
bundlerepo: fix string interpolation Matt Harbison is saying we cannot `%s` a type into a byte string and that seems reasonable.
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Thu Feb 23 23:05:51 2023 +0100
+++ b/mercurial/bundlerepo.py	Fri Feb 24 03:03:54 2023 +0100
@@ -326,7 +326,7 @@
             self._handle_bundle1(bundle, bundlepath)
         else:
             raise error.Abort(
-                _(b'bundle type %s cannot be read') % type(bundle)
+                _(b'bundle type %r cannot be read') % type(bundle)
             )
 
     def _handle_bundle1(self, bundle, bundlepath):