Skip to content

Commit 583d947

Browse files
author
Willi Ballenthin
committed
binary parser: remove dead code
1 parent d946da3 commit 583d947

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Evtx/BinaryParser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ def __init__(self, buf, offset):
182182
def __repr__(self):
183183
return "Block(buf={!r}, offset={!r})".format(self._buf, self._offset)
184184

185-
def __unicode__(self):
186-
return "BLOCK @ {}.".format(hex(self.offset()))
187-
188185
def __str__(self):
189186
return str(self)
190187

@@ -493,9 +490,6 @@ def unpack_wstring(self, offset, length):
493490
except AttributeError: # already a 'str' ?
494491
return bytes(self._buf[self._offset + offset:self._offset + offset + \
495492
2 * length]).decode("utf16")
496-
except:
497-
from IPython import embed; embed()
498-
import sys; sys.exit()
499493

500494
def unpack_dosdate(self, offset):
501495
"""

0 commit comments

Comments
 (0)