Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Shpak committed Nov 14, 2024
1 parent 4b60a4a commit 56ad26f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions winregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 56ad26f

Please sign in to comment.