[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Tomas Ravinskas
Tomas Ravinskas added the comment: Can't see anything about this in the docs, I just noticed that it breaks shiv after upgrade. -- ___ Python tracker <https://bugs.python.org/is

[issue39517] runpy calls open_code with Path object

2020-02-01 Thread Tomas Ravinskas
New submission from Tomas Ravinskas : runpy accepts Path like objects but open_code seems to only accept strings, so calling open_code with Path object throws TypeError. I think runpy should call str() on all path passed to open_code. The relevant line is 232 in runpy.py in function