comparison mercurial/util.py @ 33094:4c5af472a599

py3: add b'' to make a triple quoted string bytes on Python 3 Transformer does not adds b'' in front of triple quoted strings to prevent converting docs to bytes.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 24 Jun 2017 19:57:50 +0530
parents ce96efec8112
children d9962854a4a2
comparison
equal deleted inserted replaced
33093:7fed389f9a9f 33094:4c5af472a599
1166 progress(topic, num) 1166 progress(topic, num)
1167 progress(topic, None) 1167 progress(topic, None)
1168 1168
1169 return hardlink, num 1169 return hardlink, num
1170 1170
1171 _winreservednames = '''con prn aux nul 1171 _winreservednames = b'''con prn aux nul
1172 com1 com2 com3 com4 com5 com6 com7 com8 com9 1172 com1 com2 com3 com4 com5 com6 com7 com8 com9
1173 lpt1 lpt2 lpt3 lpt4 lpt5 lpt6 lpt7 lpt8 lpt9'''.split() 1173 lpt1 lpt2 lpt3 lpt4 lpt5 lpt6 lpt7 lpt8 lpt9'''.split()
1174 _winreservedchars = ':*?"<>|' 1174 _winreservedchars = ':*?"<>|'
1175 def checkwinfilename(path): 1175 def checkwinfilename(path):
1176 r'''Check that the base-relative path is a valid filename on Windows. 1176 r'''Check that the base-relative path is a valid filename on Windows.