changeset 50240:149f09ffef46

bundlerepo: fix string interpolation Matt Harbison is saying we cannot `%s` a type into a byte string and that seems reasonable.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 24 Feb 2023 03:03:54 +0100
parents 197204dba8a2
children fef5bca96513
files mercurial/bundlerepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):