mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-07 13:41:12 -07:00
18 lines
353 B
Python
18 lines
353 B
Python
import winreg
|
|
from itertools import count
|
|
|
|
|
|
def key_values(key):
|
|
for index in count():
|
|
try:
|
|
yield winreg.EnumValue(key, index)
|
|
except WindowsError:
|
|
break
|
|
|
|
|
|
def key_subkeys(key):
|
|
for index in count():
|
|
try:
|
|
yield winreg.EnumKey(key, index)
|
|
except WindowsError:
|
|
break
|