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

Fix DeprecationWarning: invalid escape sequence \d #236

Merged
merged 1 commit into from
May 30, 2024

Conversation

league
Copy link
Collaborator

@league league commented May 29, 2024

Two places where regexes used \d without being "raw" strings. The one in like_pmap was showing up in tests as:

like_pmap:95: DeprecationWarning: invalid escape sequence '\d'

Though it's not yet clear to me how/why like_pmap is being imported into any tests...?

@league
Copy link
Collaborator Author

league commented May 29, 2024

For reference, like_pmap.py is being tested from test_scripts.py, with a glob over TOOLS_DIR.

@jaycedowell
Copy link
Collaborator

Yes, it's test_scripts.py that looks at those files. It's an attempt to use static analysis with pylint to find problems with the scripts without having to run them.

@jaycedowell jaycedowell merged commit 72230f2 into master May 30, 2024
16 of 18 checks passed
@jaycedowell jaycedowell deleted the fix-regex-escapes branch May 30, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants