Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dissect/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Isolate 2.7 compatibility filth.
'''
import sys
from __future__ import unicode_literals

major = sys.version_info.major
minor = sys.version_info.minor
Expand All @@ -15,8 +16,9 @@ def iterbytes(byts):
for c in byts:
yield ord(c)

range = xrange

else:

def iterbytes(byts):
return iter(byts)

2 changes: 1 addition & 1 deletion dissect/formats/inet.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self):

def _onSetEtype(self):
# append vlan tags if needed
if etype == ethp.vlan:
if self.etype == ethp.vlan:
self.vtag = uint16()
self.vvlan = uint16()

Expand Down
Loading