We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a82ef commit 2f2ac91Copy full SHA for 2f2ac91
sc2reader/scripts/sc2parse.py
@@ -67,8 +67,7 @@ def main():
67
print '[ERROR]', e.message
68
for event in e.game_events[-5:]:
69
print '{0} - {1}'.format(hex(event.type),event.bytes.encode('hex'))
70
- e.buffer.seek(e.location)
71
- print e.buffer.peek(50).encode('hex')
+ print e.buffer.read_range(e.location, e.location+50).encode('hex')
72
print
73
except Exception as e:
74
0 commit comments