changeset 47345:710435a5c469

docket: make compatible with py3.6, where Struct.format is bytes Differential Revision: https://phab.mercurial-scm.org/D10770
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 25 May 2021 16:46:32 -0700
parents dc3800569157
children 5e12b6bfdd3e
files mercurial/revlogutils/docket.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/docket.py	Sun May 30 22:12:48 2021 +0200
+++ b/mercurial/revlogutils/docket.py	Tue May 25 16:46:32 2021 -0700
@@ -95,7 +95,9 @@
 # * 8 bytes: size of data
 # * 8 bytes: pending size of data
 # * 1 bytes: default compression header
-S_HEADER = struct.Struct(constants.INDEX_HEADER.format + 'BBLLLLc')
+S_HEADER = struct.Struct(
+    pycompat.sysstr(constants.INDEX_HEADER.format) + 'BBLLLLc'
+)
 
 
 class RevlogDocket(object):