diff options
| author | Paul Varner <fuzzyray@gentoo.org> | 2015-11-24 13:07:33 -0600 |
|---|---|---|
| committer | Paul Varner <fuzzyray@gentoo.org> | 2015-11-24 13:07:33 -0600 |
| commit | c9a117bebeb04efcb731e47a12e79c4c8d065896 (patch) | |
| tree | 6db392af53510002fce752a07b5c9d79daafddea /setup.py | |
| parent | b58ce050071eac2208769bbd8241fbecc90e11af (diff) | |
| download | gentoolkit-c9a117bebeb04efcb731e47a12e79c4c8d065896.tar.gz | |
Change all open() calls to use Unicode.
We are using the following import from portage:
from portage import _encodings, _unicode_decode, _unicode_encode
A generalized call using the definitions from portage looks like:
with open(_unicode_encode(path), encoding=_encodings['fs']) as open_file
The portage code has been in place since 2013 and using the definitions
from portage ensures we maintain compatibility if portage changes.
All portage versions in the tree contain the above code.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
