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

Ensure filepath in generated script is raw string #936

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

MialLewis
Copy link
Contributor

@MialLewis MialLewis commented Sep 14, 2023

Description of work:

This prepends an r to the filepath string in generated scripts to ensure \U is not interpreted as unicode.

To test:

I've struggled to directly test this, as I cannot directly replicate the script that caused the issue. In my case, the generated filepath is separated by / not \.

Regardless, generated a few scripts of cut/slices from clipboard and test.

Fixes #932

@MialLewis MialLewis changed the title Ensure filename in generated script is raw string Ensure filepath in generated script is raw string Sep 14, 2023
@MialLewis MialLewis marked this pull request as ready for review September 14, 2023 11:49
@MialLewis MialLewis added the bug label Sep 15, 2023
@robertapplin robertapplin self-assigned this Sep 15, 2023
@robertapplin
Copy link
Contributor

Should the base be release-next?

@MialLewis MialLewis changed the base branch from main to release-next September 15, 2023 14:36
@MialLewis
Copy link
Contributor Author

Should the base be release-next?

We need a bot...

Copy link
Contributor

@robertapplin robertapplin left a comment

Choose a reason for hiding this comment

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

The script in the attached issue runs without error

@SilkeSchomann SilkeSchomann merged commit df7b2ad into release-next Sep 18, 2023
1 check passed
@SilkeSchomann SilkeSchomann deleted the 932_fix_unicode_script_error branch September 18, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants