[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 _get_code_from_file.

--
components: Library (Lib)
messages: 361176
nosy: Tomas Ravinskas
priority: normal
severity: normal
status: open
title: runpy calls open_code with Path object
type: crash
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue39517>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue39517>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com