* wrap/python/spot.py (automata): Use universal_newlines.
This commit is contained in:
parent
64607af7ab
commit
619b227eff
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||||
|
universal_newlines=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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue