Skip to content

Fixes Python import parser bug in multi-line string literals. #2971

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 1 commit into from
Oct 22, 2024

Conversation

dom96
Copy link
Contributor

@dom96 dom96 commented Oct 22, 2024

We're switching to Ruff, but in the meantime the fix was simple so let's get it deployed.

Test Plan

$ bazel test @workerd//src/workerd/api:pyodide/pyodide-test

Also ran the parser on some real Python code (which I should have done in my previous changes), specifically:

@dom96 dom96 requested review from a team as code owners October 22, 2024 09:54
@dom96 dom96 requested review from danlapid and tewaro October 22, 2024 09:54
KJ_TEST("quote in multiline string") {
auto files = kj::heapArrayBuilder<kj::String>(1);
files.add(kj::str(R"SCRIPT(temp = """
w["h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this fail before the change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@dom96 dom96 merged commit 834598b into main Oct 22, 2024
13 checks passed
@dom96 dom96 deleted the dominik/fix-import-parser-multi-line branch October 22, 2024 13:31
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