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

This commit is contained in:
Alexandre Duret-Lutz 2015-10-21 14:42:52 +02:00
parent 64607af7ab
commit 619b227eff

View file

@ -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: