Commit 58802bc9 authored by Manuel Günther's avatar Manuel Günther

Fixed 5column compressed scorefile reading for python3

parent 5a60e592
...@@ -168,6 +168,7 @@ def five_column(filename): ...@@ -168,6 +168,7 @@ def five_column(filename):
""" """
for i, l in enumerate(open_file(filename)): for i, l in enumerate(open_file(filename)):
if isinstance(l, bytes): l = l.decode('utf-8')
s = l.strip() s = l.strip()
if len(s) == 0 or s[0] == '#': continue #empty or comment if len(s) == 0 or s[0] == '#': continue #empty or comment
field = [k.strip() for k in s.split()] field = [k.strip() for k in s.split()]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment