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 syntaxwarning in python 3.12 #266

Merged
merged 2 commits into from
Jul 27, 2024
Merged

Conversation

dadokkio
Copy link
Contributor

With python 3.12 some syntax is raising SyntaxWarning:

 /usr/local/lib/python3.12/site-packages/regipy/plugins/ntuser/shellbags_ntuser.py:222: SyntaxWarning: invalid escape sequence '\d'
   if re.match("\d+", v.name):
 /usr/local/lib/python3.12/site-packages/regipy/plugins/usrclass/shellbags_usrclass.py:226: SyntaxWarning: invalid escape sequence '\d'
   if re.match("\d+", v.name):

Making the string literal with raw should easily resolve the issue.

@mkorman90 mkorman90 self-requested a review July 27, 2024 10:31
@mkorman90 mkorman90 merged commit 1bd6377 into mkorman90:master Jul 27, 2024
4 checks passed
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