Fix encoding issues

parent 9fd8d74d
......@@ -47,7 +47,7 @@ class GASResponse(object):
self.transcript = transcript
main_contents = util.gen_main(transcript)
answer_set = GASResponse._run(main_contents)
answer_set = GASResponse._run(main_contents).decode("utf-8")
advice = GASResponse._extract_advice(answer_set, transcript.name)
self.missing_classes = advice[0]
......@@ -59,7 +59,7 @@ class GASResponse(object):
def _run(cls, main_contents):
""" Run the program under s(ASP) and return the answer set """
with NamedTemporaryFile() as fil:
fil.write(main_contents)
fil.write(main_contents.encode("utf-8"))
fil.flush()
# Command to run audit
......
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