# HG changeset patch # User Pierre-Yves David # Date 2019-10-04 21:07:00 # Node ID c348d829d23a0bb240e4a7904b74a88da9f4e71a # Parent 0f90c2d2d7e86e5af8906bf8a160b3d5c7bd9ee4 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 diff --git a/mercurial/revlogutils/sidedata.py b/mercurial/revlogutils/sidedata.py --- a/mercurial/revlogutils/sidedata.py +++ b/mercurial/revlogutils/sidedata.py @@ -49,8 +49,8 @@ SD_TEST6 = 6 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())