Skip to content
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

Simplify parse_page() in extractor code #353

Merged
merged 2 commits into from
Oct 7, 2023
Merged

Conversation

xxyzz
Copy link
Collaborator

@xxyzz xxyzz commented Oct 7, 2023

Only the level two language title node is used in these functions, other nodes are ignored and the code could be simplified with the WikiNode.find_child() method.

xxyzz added 2 commits October 7, 2023 12:34
Only the level two language title node is used in these functions,
other nodes are ignored and the code could be simplified with the
`WikiNode.find_child()` method.
also enable deprecation warnings
@empiriker
Copy link
Contributor

I see some changes to the import order in the /de files.

Do you use some kind of auto-sort on the imports? I'd be happy to follow the prefered order.

@xxyzz
Copy link
Collaborator Author

xxyzz commented Oct 7, 2023

I used the isort tool, it's inside the dev dependency group.

@xxyzz
Copy link
Collaborator Author

xxyzz commented Oct 7, 2023

Hi @empiriker, I left some comments to your German extractor pull request earlier today, please check them out.

@xxyzz
Copy link
Collaborator Author

xxyzz commented Oct 7, 2023

I think all the invalid escape sequence syntax warnings in the 3.12 test outputs are regex bugs...

@xxyzz xxyzz merged commit ffab519 into tatuylonen:master Oct 7, 2023
5 checks passed
@xxyzz xxyzz deleted the fr branch October 7, 2023 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants