10000 gh-113317, Argument Clinic: Add BlockParser.fail() method by vstinner · Pull Request #115369 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-113317, Argument Clinic: Add BlockParser.fail() method #115369

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

Closed
wants to merge 3 commits into from
Closed
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
parse_file(): pass filename
  • Loading branch information
vstinner committed Feb 12, 2024
commit 67dab577abfbe53cdc490c40b0aeb48867a3281e
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,7 @@ def parse_file(
raw = f.read()

# exit quickly if there are no clinic markers in the file
find_start_re = BlockParser("", language, filename=None).find_start_re
find_start_re = BlockParser("", language, filename=filename).find_start_re
if not find_start_re.search(raw):
return

Expand Down
0