From 56ad26f542963a2e66f01361a43ce0bc4b4dca41 Mon Sep 17 00:00:00 2001 From: "A.Shpak" Date: Thu, 14 Nov 2024 22:02:24 +0300 Subject: [PATCH] - --- winregistry.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/winregistry.py b/winregistry.py index 5d5e1df..9316bf2 100644 --- a/winregistry.py +++ b/winregistry.py @@ -226,19 +226,8 @@ def create_key( def delete_key( self, sub_key: str, - recursive: bool = False, ) -> None: - if not recursive: - winreg.DeleteKey(self._hkey, sub_key) - return - # handle = self._get_handler(name, KEY_READ, key_wow64_32key) - # keys_num, values_num, modify = QueryInfoKey(handle) # pylint: disable=unused-variable - # for key_i in range(0, keys_num): - # key = EnumKey(handle, key_i) - # self.delete_key_tree(f"{name}\\{key}", key_wow64_32key) - # handle.Close() - # self.delete_key(name, key_wow64_32key) - + winreg.DeleteKey(self._hkey, sub_key) self._auto_refresh() def read_value(