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

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):
opened = open_file(filename, 'rb')
if sys.version_info.major > 2:
import io
opened = io.TextIOWrapper(opened, newline="")
if not isinstance(opened, io.TextIOWrapper):
opened = io.TextIOWrapper(opened, newline="")
reader = csv.reader(opened, delimiter=' ')
for splits in reader:
Supports Markdown
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