STINNER Victor added the comment:

Here is a different but similar patch for _syscmd_uname():
- use os.fsdecode() to use the locale encoding instead of latin-1
- use subprocess.DEVNULL to redirect errors to /dev/null
- use "with proc:" to ensure that the subprocesss is cleaned in case of error

----------
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file35659/platform_syscmd_uname.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to