[issue30427] isinstance checks in os.path.normcase redundant with os.fspath

Wolfgang Maier report at bugs.python.org
Mon May 22 04:31:23 EDT 2017


Wolfgang Maier added the comment:

Just created a PR for this, which eliminates the redundancy. This also changes the error message (making it less specific), but not the type of a raised exception.
If you think that the error message deserves to be preserved that could, of course, be done too.

----------
type:  -> performance

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30427>
_______________________________________


More information about the Python-bugs-list mailing list