netflow, minor type issue in previous

This commit is contained in:
Ad Schellevis 2019-05-14 22:08:52 +02:00
parent 7e55ef5218
commit a99d1ecf8e

View File

@ -116,7 +116,7 @@ class FlowParser:
while True:
# header [version, len_words, reserved, fields]
hdata = flowh.read(8)
if hdata == '':
if hdata == b'':
break
header = struct.unpack('BBHI', hdata)
record = self._parse_binary(