From 6d11c7dc4ef864d13bc84bc23ef2ca80cb0a90f0 Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Wed, 29 May 2024 15:15:38 +0200 Subject: [PATCH] fix syntaxwarning in python 3.12 --- regipy/plugins/ntuser/shellbags_ntuser.py | 2 +- regipy/plugins/usrclass/shellbags_usrclass.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regipy/plugins/ntuser/shellbags_ntuser.py b/regipy/plugins/ntuser/shellbags_ntuser.py index c6f7ba7..7e4e9a6 100644 --- a/regipy/plugins/ntuser/shellbags_ntuser.py +++ b/regipy/plugins/ntuser/shellbags_ntuser.py @@ -219,7 +219,7 @@ def iter_sk(self, key, reg_path, base_path='', path=''): node_slot = '' for v in key.iter_values(trim_values=False): - if re.match("\d+", v.name): + if re.match(r"\d+", v.name): slot = v.name byte_stream = v.value shell_items = pyfwsi.item_list() diff --git a/regipy/plugins/usrclass/shellbags_usrclass.py b/regipy/plugins/usrclass/shellbags_usrclass.py index 7995c09..1c59595 100644 --- a/regipy/plugins/usrclass/shellbags_usrclass.py +++ b/regipy/plugins/usrclass/shellbags_usrclass.py @@ -223,7 +223,7 @@ def iter_sk(self, key, reg_path, base_path='', path=''): node_slot = '' for v in key.iter_values(trim_values=False): - if re.match("\d+", v.name): + if re.match(r"\d+", v.name): slot = v.name byte_stream = v.value shell_items = pyfwsi.item_list()