sidedata: adjust string for python3
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 04 Oct 2019 17:07:00 -0400
changeset 43048 c348d829d23a
parent 43047 0f90c2d2d7e8
child 43049 6e8582ccf76d
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
mercurial/revlogutils/sidedata.py
--- 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())