[issue27232] os.fspath() should not use repr() on error
Berker Peksag
report at bugs.python.org
Thu Oct 6 07:09:54 EDT 2016
Berker Peksag added the comment:
This has already been fixed in ea7b6a7827a4:
>>> import os
>>> os.fspath(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: expected str, bytes or os.PathLike object, not NoneType
----------
nosy: +berker.peksag
resolution: -> out of date
status: open -> closed
superseder: Show the address in the repr for class objects ->
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27232>
_______________________________________
More information about the Python-bugs-list
mailing list