mercurial/revlogutils/constants.py
changeset 47371 298d4400ea68
parent 47270 25ce16bf724b
child 47393 7a0ec25d5836
--- a/mercurial/revlogutils/constants.py	Tue Jun 01 09:18:27 2021 +0200
+++ b/mercurial/revlogutils/constants.py	Thu Jun 03 16:12:03 2021 +0200
@@ -29,7 +29,9 @@
 
 ### main revlog header
 
-INDEX_HEADER = struct.Struct(b">I")
+# We cannot rely on  Struct.format is inconsistent for python <=3.6 versus above
+INDEX_HEADER_FMT = b">I"
+INDEX_HEADER = struct.Struct(INDEX_HEADER_FMT)
 
 ## revlog version
 REVLOGV0 = 0