diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-11 02:54:27 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-08-11 04:20:53 +0200 |
| commit | 6aea8d06b637ea55a2fa7d2949863adae5310ce2 (patch) | |
| tree | fa38b7c911333400ab9d8cb8f2615faac3ca8964 /examples/list_undefined.py | |
| parent | d0732cff9cef507d79d5c53fbcc648dd6f560ce5 (diff) | |
Don't pass encoding= to Popen()
Popen()'s 'encoding' parameter is Python 3.6+ only.
Unfortunately, Popen()'s universal_newlines=True without 'encoding' will
use the encoding from the environment. Do a manual version instead, so
that we can still use the user-specified encoding (usually UTF-8). That
might prevent problems on systems that are (poorly) configured to use
the C locale.
Diffstat (limited to 'examples/list_undefined.py')
0 files changed, 0 insertions, 0 deletions
