Commit 1bae3a39 authored by Manuel Günther's avatar Manuel Günther

Fixed issue of TextIO around TextIO

parent 0acd98a6
Pipeline #5251 passed with stages
in 5 minutes and 46 seconds
...@@ -386,7 +386,8 @@ def _iterate_score_file(filename): ...@@ -386,7 +386,8 @@ def _iterate_score_file(filename):
opened = open_file(filename, 'rb') opened = open_file(filename, 'rb')
if sys.version_info.major > 2: if sys.version_info.major > 2:
import io import io
opened = io.TextIOWrapper(opened, newline="") if not isinstance(opened, io.TextIOWrapper):
opened = io.TextIOWrapper(opened, newline="")
reader = csv.reader(opened, delimiter=' ') reader = csv.reader(opened, delimiter=' ')
for splits in reader: for splits in reader:
......
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