##// END OF EJS Templates
fastannotate: slice strings to get single character...
Augie Fackler -
r41298:e40b7a50 default
parent child Browse files
Show More
@@ -103,7 +103,7 b' class defaultformatter(object):'
103 103 result += ': ' + self.ui.label('-' + lines[i],
104 104 'diff.deleted')
105 105
106 if result[-1] != '\n':
106 if result[-1:] != '\n':
107 107 result += '\n'
108 108
109 109 self.ui.write(result)
@@ -98,7 +98,7 b' def _parseresponse(payload):'
98 98 state = 0 # 0: vfspath, 1: size
99 99 vfspath = size = ''
100 100 while i < l:
101 ch = payload[i]
101 ch = payload[i:i + 1]
102 102 if ch == '\0':
103 103 if state == 1:
104 104 result[vfspath] = buffer(payload, i + 1, int(size))
General Comments 0
You need to be logged in to leave comments. Login now