Mercurial > hg
diff hgext/remotefilelog/shallowutil.py @ 49859:8b369bcbadf1
remotefilelog: byteify the message for a few StorageErrors
Flagged by pytype locally.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 06 Jan 2023 12:20:09 -0500 |
parents | 53e9422a9b45 |
children | f4733654f144 |
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowutil.py Thu Jan 05 17:38:14 2023 -0500 +++ b/hgext/remotefilelog/shallowutil.py Fri Jan 06 12:20:09 2023 -0500 @@ -247,7 +247,7 @@ index = raw.index(b'\0') except ValueError: raise BadRemotefilelogHeader( - "unexpected remotefilelog header: illegal format" + b"unexpected remotefilelog header: illegal format" ) header = raw[:index] if header.startswith(b'v'): @@ -267,7 +267,7 @@ size = int(header) if size is None: raise BadRemotefilelogHeader( - "unexpected remotefilelog header: no size found" + b"unexpected remotefilelog header: no size found" ) return index + 1, size, flags