Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlogutils/sidedata.py @ 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 | ba4072c0a911 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
43047:0f90c2d2d7e8 | 43048:c348d829d23a |
---|---|
47 SD_TEST5 = 5 | 47 SD_TEST5 = 5 |
48 SD_TEST6 = 6 | 48 SD_TEST6 = 6 |
49 SD_TEST7 = 7 | 49 SD_TEST7 = 7 |
50 | 50 |
51 # internal format constant | 51 # internal format constant |
52 SIDEDATA_HEADER = struct.Struct('>H') | 52 SIDEDATA_HEADER = struct.Struct(r'>H') |
53 SIDEDATA_ENTRY = struct.Struct('>HL20s') | 53 SIDEDATA_ENTRY = struct.Struct(r'>HL20s') |
54 | 54 |
55 def sidedatawriteprocessor(rl, text, sidedata): | 55 def sidedatawriteprocessor(rl, text, sidedata): |
56 sidedata = list(sidedata.items()) | 56 sidedata = list(sidedata.items()) |
57 sidedata.sort() | 57 sidedata.sort() |
58 rawtext = [SIDEDATA_HEADER.pack(len(sidedata))] | 58 rawtext = [SIDEDATA_HEADER.pack(len(sidedata))] |