mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
FDroidPopen: return str again
In the future we might want to instead return bytes, but for now the easiest for the port to python3 is to continue to return str.
This commit is contained in:
parent
b73cc8e0b3
commit
5026d4e08b
1 changed files with 2 additions and 2 deletions
|
@ -1672,9 +1672,9 @@ def FDroidPopen(commands, cwd=None, output=True, stderr_to_stdout=True):
|
||||||
line = stdout_queue.get()
|
line = stdout_queue.get()
|
||||||
if output and options.verbose:
|
if output and options.verbose:
|
||||||
# Output directly to console
|
# Output directly to console
|
||||||
sys.stderr.write(line)
|
sys.stderr.buffer.write(line)
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
result.output += line
|
result.output += line.decode('utf-8')
|
||||||
|
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue