Commit c055afa9 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch...

Merge branch '23-typeerror-underlying-read-should-have-returned-a-bytes-like-object-not-str' into 'master'

Fixed issue of TextIO around TextIO

Closes #23 

Without understanding, where the error comes from, I provide a work-around that should work.

See merge request !23
parents 0acd98a6 1bae3a39
Pipeline #5507 passed with stages
in 3 minutes and 4 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