cborutil: fix an error interpolating str into bytes
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 06 Jan 2025 20:25:11 -0500
changeset 52634 fb8932685031
parent 52633 86920d1f7632
child 52635 cdfaba964f21
cborutil: fix an error interpolating str into bytes Also, `ValueError` wants str anyway.
mercurial/utils/cborutil.py
--- a/mercurial/utils/cborutil.py	Sat Jan 04 10:38:02 2025 -0500
+++ b/mercurial/utils/cborutil.py	Mon Jan 06 20:25:11 2025 -0500
@@ -236,7 +236,7 @@
             break
 
     if not fn:
-        raise ValueError(b'do not know how to encode %s' % type(v))
+        raise ValueError('do not know how to encode %s' % type(v))
 
     return fn(v)