Skip to content

Commit a35ba5d

Browse files
author
Willi Ballenthin
committed
BinaryParser: explicitly use bytes
1 parent d45abdd commit a35ba5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Evtx/BinaryParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,12 @@ def unpack_guid(self, offset):
597597
o = self._offset + offset
598598

599599
try:
600-
_bin = self._buf[o:o + 16]
600+
_bin = bytes(self._buf[o:o + 16])
601601
except IndexError:
602602
raise OverrunBufferException(o, len(self._buf))
603603

604604
# Yeah, this is ugly
605-
h = map(ord, _bin)
605+
h = _bin
606606
return """
607607
{:02x}{:02x}{:02x}{:02x}-{:02x}{:02x}- \
608608
{:02x}{:02x}- \

0 commit comments

Comments
 (0)