comparison mercurial/utils/cborutil.py @ 52634:fb8932685031

cborutil: fix an error interpolating str into bytes Also, `ValueError` wants str anyway.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 20:25:11 -0500
parents 6a0afc73472e
children e627cc25b6f3
comparison
equal deleted inserted replaced
52633:86920d1f7632 52634:fb8932685031
234 continue 234 continue
235 fn = STREAM_ENCODERS[ty] 235 fn = STREAM_ENCODERS[ty]
236 break 236 break
237 237
238 if not fn: 238 if not fn:
239 raise ValueError(b'do not know how to encode %s' % type(v)) 239 raise ValueError('do not know how to encode %s' % type(v))
240 240
241 return fn(v) 241 return fn(v)
242 242
243 243
244 class CBORDecodeError(Exception): 244 class CBORDecodeError(Exception):