Skip to content

Commit 5a230b6

Browse files
py3 fix: unpack_binary always returns bytes
1 parent 5990264 commit 5a230b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Evtx/BinaryParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def unpack_binary(self, offset, length=False):
456456
- `OverrunBufferException`
457457
"""
458458
if not length:
459-
return ""
459+
return bytes("".encode("ascii"))
460460
o = self._offset + offset
461461
try:
462462
return bytes(struct.unpack_from("<{}s".format(length), self._buf, o)[0])

0 commit comments

Comments
 (0)