##// END OF EJS Templates
py3: slice on bytes instead of indexing...
Pulkit Goyal -
r35601:2f123f30 default
parent child Browse files
Show More
@@ -356,7 +356,7 b' def _unidiff(t1, t2, opts=defaultopts):'
356 # the previous hunk context until we find a line starting with an
356 # the previous hunk context until we find a line starting with an
357 # alphanumeric char.
357 # alphanumeric char.
358 for i in xrange(astart - 1, lastpos - 1, -1):
358 for i in xrange(astart - 1, lastpos - 1, -1):
359 if l1[i][0].isalnum():
359 if l1[i][0:1].isalnum():
360 func = ' ' + l1[i].rstrip()[:40]
360 func = ' ' + l1[i].rstrip()[:40]
361 lastfunc[1] = func
361 lastfunc[1] = func
362 break
362 break
General Comments 0
You need to be logged in to leave comments. Login now