]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] Make Android streams respect the unbuffered (`-u`) option (GH-138806) (#139110)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Sep 2025 11:45:03 +0000 (13:45 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 11:45:03 +0000 (12:45 +0100)
commit5e59aef20f1f7b261c6550c698f813f996417417
tree03e179c2ed1a6e7db390edeb5af1b1090d26b887
parent54d5235ed3c44cbc415f3eb8fc4f3b1744de8437
[3.13] Make Android streams respect the unbuffered (`-u`) option (GH-138806) (#139110)

Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
(cherry picked from commit 0ac377ff23672ae7e2451f4cdfbe37c4efd464e7)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Lib/_android_support.py
Lib/test/test_android.py