Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[3.12] GH-106330: Fix matching of empty path inpathlib.PurePath.match() (GH-106331)#106372

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
barneygale merged 2 commits intopython:3.12frombarneygale:backport-b4efdf8-3.12
Jul 4, 2023

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commentedJul 3, 2023
edited by bedevere-bot
Loading

We match paths using the_lines attribute, which is derived from the path's string representation. The bug arises because an empty path's string representation is'.' (not''), which is matched by the'*' wildcard. (cherry picked from commitb4efdf8)

…th.match()` (pythonGH-106331)We match paths using the `_lines` attribute, which is derived from thepath's string representation. The bug arises because an empty path's stringrepresentation is `'.'` (not `''`), which is matched by the `'*'` wildcard.(cherry picked from commitb4efdf8)Co-authored-by: Barney Gale <barney.gale@gmail.com>
@barneygalebarneygale merged commitd5ed72b intopython:3.12Jul 4, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@barneygale@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp