Skip to content

Commit

Permalink
Fixed 5column compressed scorefile reading for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
siebenkopf committed Sep 17, 2015
1 parent 5a60e59 commit 58802bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bob/measure/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def five_column(filename):
"""

for i, l in enumerate(open_file(filename)):
if isinstance(l, bytes): l = l.decode('utf-8')
s = l.strip()
if len(s) == 0 or s[0] == '#': continue #empty or comment
field = [k.strip() for k in s.split()]
Expand Down

0 comments on commit 58802bc

Please sign in to comment.