Show More
@@ -287,14 +287,14 b' class mergestate(object):' | |||
|
287 | 287 | off = 0 |
|
288 | 288 | end = len(data) |
|
289 | 289 | while off < end: |
|
290 | rtype = data[off] | |
|
290 | rtype = data[off:off + 1] | |
|
291 | 291 | off += 1 |
|
292 | 292 | length = _unpack('>I', data[off:(off + 4)])[0] |
|
293 | 293 | off += 4 |
|
294 | 294 | record = data[off:(off + length)] |
|
295 | 295 | off += length |
|
296 | 296 | if rtype == 't': |
|
297 | rtype, record = record[0], record[1:] | |
|
297 | rtype, record = record[0:1], record[1:] | |
|
298 | 298 | records.append((rtype, record)) |
|
299 | 299 | f.close() |
|
300 | 300 | except IOError as err: |
General Comments 0
You need to be logged in to leave comments.
Login now