You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3's open() accepts str paths directly and always uses UTF-8 as
the filesystem and content encoding on modern systems. The
_unicode_encode(path, encoding=_encodings["fs"]) pattern was Python 2
compatibility code that converted str paths to bytes before passing
them to open(); it is unnecessary in Python 3.
Replace open(_unicode_encode(path, encoding=_encodings["fs"]),
encoding=_encodings["content"]) with open(path, encoding="utf-8")
throughout, and drop the portage imports.
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Part-of: #62
0 commit comments