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

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

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