mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Oops forgot output sentinel when getting result from forked compiler
This commit is contained in:
parent
7647c265e1
commit
c67dacd033
@ -242,7 +242,8 @@ def compile_pyj(data, filename='<stdin>', beautify=True, private_scope=True, lib
|
||||
stdout = p.communicate(as_bytes(data))[0]
|
||||
if p.wait() != 0:
|
||||
raise SystemExit(p.returncode)
|
||||
result = as_unicode(stdout)
|
||||
idx = stdout.find(OUTPUT_SENTINEL)
|
||||
result = as_unicode(stdout[idx+len(OUTPUT_SENTINEL):])
|
||||
else:
|
||||
c = compiler()
|
||||
result = c(data, options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user