Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-104102: Optimize pathlib.Path.glob() handling of ../ pattern segments #104103

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

Merged
merged 4 commits into from
May 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix argument name
  • Loading branch information
barneygale committed May 2, 2023
commit e35153fc93460bd77d35b0a506bf53a80a9ffbe6
4 changes: 2 additions & 2 deletions 4 Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def _select_from(self, parent_path, is_dir, exists, scandir):


class _ParentSelector(_Selector):
def __init__(self, name, child_parts, case_sensitive):
_Selector.__init__(self, child_parts, case_sensitive)
def __init__(self, name, child_parts, flavour):
_Selector.__init__(self, child_parts, flavour)

def _select_from(self, parent_path, is_dir, exists, scandir):
path = parent_path._make_child_relpath('..')
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.