mkorman90 / regipy

Regipy is an os independent python library for parsing offline registry hives
MIT License
244 stars 53 forks source link

fix syntaxwarning in python 3.12 #266

Closed dadokkio closed 4 months ago

dadokkio commented 6 months ago

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.