bpo-37364: Use io.open_code() to read .pth files (GH-14299)


https://bugs.python.org/issue37364
(cherry picked from commit 184f3d4f39056f6fe450d007d3b9b61d811a2a4d)

Co-authored-by: Steve Dower <steve.dower@python.org>
2 files changed