mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-100750: pass encoding kwarg in lib/platform.py (#100751)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
parent
01093b8203
commit
6b3993c556
2 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,7 @@ def _syscmd_ver(system='', release='', version='',
|
|||
stdin=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
encoding="locale",
|
||||
shell=True)
|
||||
except (OSError, subprocess.CalledProcessError) as why:
|
||||
#print('Command %s failed: %s' % (cmd, why))
|
||||
|
@ -824,6 +825,7 @@ class _Processor:
|
|||
['uname', '-p'],
|
||||
stderr=subprocess.DEVNULL,
|
||||
text=True,
|
||||
encoding="utf8",
|
||||
).strip()
|
||||
except (OSError, subprocess.CalledProcessError):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue