mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix returned value of win32file.ReadFile
returns an PyOVERLAPPEDReadBuffer that needs to be converted to str.
This commit is contained in:
parent
7e6597a5b4
commit
0fb7650786
@ -165,7 +165,7 @@ def run_command_win32(cmd):
|
|||||||
try:
|
try:
|
||||||
hr, buffer = win32file.ReadFile(stdout_r, 4096)
|
hr, buffer = win32file.ReadFile(stdout_r, 4096)
|
||||||
if hr != winerror.ERROR_IO_PENDING:
|
if hr != winerror.ERROR_IO_PENDING:
|
||||||
data = data + buffer
|
data = data + str(buffer)
|
||||||
|
|
||||||
except pywintypes.error as e:
|
except pywintypes.error as e:
|
||||||
if e.args[0] != winerror.ERROR_BROKEN_PIPE:
|
if e.args[0] != winerror.ERROR_BROKEN_PIPE:
|
||||||
|
Loading…
Reference in New Issue
Block a user