changeset 43048:c348d829d23a

sidedata: adjust string for python3 This was pointed out by Gregory Szorc: Python 3 will require a r'' because of source transformation. Differential Revision: https://phab.mercurial-scm.org/D6968
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 04 Oct 2019 17:07:00 -0400
parents 0f90c2d2d7e8
children 6e8582ccf76d
files mercurial/revlogutils/sidedata.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlogutils/sidedata.py	Fri Oct 04 18:33:54 2019 +0100
+++ b/mercurial/revlogutils/sidedata.py	Fri Oct 04 17:07:00 2019 -0400
@@ -49,8 +49,8 @@
 SD_TEST7 = 7
 
 # internal format constant
-SIDEDATA_HEADER = struct.Struct('>H')
-SIDEDATA_ENTRY = struct.Struct('>HL20s')
+SIDEDATA_HEADER = struct.Struct(r'>H')
+SIDEDATA_ENTRY = struct.Struct(r'>HL20s')
 
 def sidedatawriteprocessor(rl, text, sidedata):
     sidedata = list(sidedata.items())