mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2024-11-14 17:40:24 -08:00
19 lines
353 B
Python
19 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
|