You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-27232: os.fspath() should not use repr() on error
Files
issue27231.patch: patch adding os.fspath support to numerous posixpath.py functions
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/JelleZijlstra'closed_at=<Date2016-10-06.11:17:16.691>created_at=<Date2016-06-05.16:35:39.581>labels= ['type-feature', 'library']
title='Support the fspath protocol in the posixpath module'updated_at=<Date2016-10-06.11:17:16.689>user='https://github.com/JelleZijlstra'
This patch adds a number of os.fspath calls to the posixpath.py module. I didn't duplicate all tests to check PathLike objects in addition str/bytes, because that seemed excessive. Instead I tried to ensure that each function has at least one test checking that it accepts PathLike objects.
There seems to be an issue with your patch, it does apply cleanly when doing that manually, but Rietveld doesn't like it. The changes in Lib/posixpath.py and Lib/test/test_posixpath.py don't show up.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: