##// END OF EJS Templates
py3: slice over bytes to prevent getting ascii values
Pulkit Goyal -
r32153:6f173560 default
parent child Browse files
Show More
@@ -190,7 +190,7 b' class changelogrevision(object):'
190
190
191 # The list of files may be empty. Which means nl3 is the first of the
191 # The list of files may be empty. Which means nl3 is the first of the
192 # double newline that precedes the description.
192 # double newline that precedes the description.
193 if text[nl3 + 1] == '\n':
193 if text[nl3 + 1:nl3 + 2] == '\n':
194 doublenl = nl3
194 doublenl = nl3
195 else:
195 else:
196 doublenl = text.index('\n\n', nl3 + 1)
196 doublenl = text.index('\n\n', nl3 + 1)
@@ -491,10 +491,10 b' def makefilename(repo, pat, node, desc=N'
491 patlen = len(pat)
491 patlen = len(pat)
492 i = 0
492 i = 0
493 while i < patlen:
493 while i < patlen:
494 c = pat[i]
494 c = pat[i:i + 1]
495 if c == '%':
495 if c == '%':
496 i += 1
496 i += 1
497 c = pat[i]
497 c = pat[i:i + 1]
498 c = expander[c]()
498 c = expander[c]()
499 newname.append(c)
499 newname.append(c)
500 i += 1
500 i += 1
@@ -1980,13 +1980,13 b' def parsedate(date, formats=None, bias=N'
1980 # this piece is for rounding the specific end of unknowns
1980 # this piece is for rounding the specific end of unknowns
1981 b = bias.get(part)
1981 b = bias.get(part)
1982 if b is None:
1982 if b is None:
1983 if part[0] in "HMS":
1983 if part[0:1] in "HMS":
1984 b = "00"
1984 b = "00"
1985 else:
1985 else:
1986 b = "0"
1986 b = "0"
1987
1987
1988 # this piece is for matching the generic end to today's date
1988 # this piece is for matching the generic end to today's date
1989 n = datestr(now, "%" + part[0])
1989 n = datestr(now, "%" + part[0:1])
1990
1990
1991 defaults[part] = (b, n)
1991 defaults[part] = (b, n)
1992
1992
General Comments 0
You need to be logged in to leave comments. Login now