Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
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))
['uname', '-p'],
stderr=subprocess.DEVNULL,
text=True,
+ encoding="utf8",
).strip()
except (OSError, subprocess.CalledProcessError):
pass
--- /dev/null
+pass encoding kwarg to subprocess in platform