Skip to content

GH-92737: Corrected posixpath behaviour to not assume '//' is equivalent to '/'. #103798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

achhina
Copy link
Contributor

@achhina achhina commented Apr 24, 2023

Fixes GH-92737 - added roots equivalent check to posixpath.relpath similar to ntpath.relpath.

  • Added new test cases for posixpath.relpath
  • Tests pass locally
  • Added News Entry

@achhina
Copy link
Contributor Author

achhina commented Apr 24, 2023

@barneygale would you be able to review this when you get a chance? I wasn't sure how disruptive this would be for users who were relying on the previous implementation, so I haven't added in any warnings/deprecation, but happy to do so if desired.

achhina and others added 2 commits April 30, 2023 14:38
Co-authored-by: Barney Gale <[email protected]>
Co-authored-by: Barney Gale <[email protected]>
@achhina
Copy link
Contributor Author

achhina commented Apr 30, 2023

I didn't expect the Spanish Inquisition

@achhina
Copy link
Contributor Author

achhina commented Aug 22, 2023

@barneygale would you be able to take a look at this when you get a chance?

@achhina
Copy link
Contributor Author

achhina commented Dec 3, 2023

Hi, friendly ping @barneygale, would you mind taking another look at this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

os.path.relpath() assumes '//' root is equivalent to '/'
3 participants