]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35348: Fix platform.architecture() (GH-11159)
authorVictor Stinner <vstinner@redhat.com>
Mon, 17 Dec 2018 17:47:24 +0000 (18:47 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Dec 2018 17:47:24 +0000 (18:47 +0100)
commit0af9c33262fb43f39a6558e3f155689e83e10706
tree5cce3e7ae9bafb77c733a2ff2410c074c73d218d
parent94cf308ee231bfbfaa9ddc50b9764545a1318773
bpo-35348: Fix platform.architecture() (GH-11159)

Make platform.architecture() parsing of "file" command output more
reliable:

* Add the "-b" option to the "file" command to omit the filename;
* Force the usage of the C locale;
* Search also the "shared object" pattern.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
Lib/platform.py
Misc/NEWS.d/next/Library/2018-12-14-13-27-45.bpo-35348.u3Y2an.rst [new file with mode: 0644]