Commit 619b227e authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* wrap/python/spot.py (automata): Use universal_newlines.

parent 64607af7
......@@ -366,7 +366,9 @@ def automata(*sources, timeout=None):
p = automaton_stream_parser(proc.stdout.fileno(),
filename, True)
else:
# universal_newlines for str output instead of bytes
out = subprocess.check_output(filename[:-1], shell=True,
universal_newlines=True,
timeout=timeout)
p = automaton_stream_parser(out, filename, True)
elif '\n' in filename:
......
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