mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-31 12:00:04 -07:00
18 lines
309 B
Python
18 lines
309 B
Python
from itertools import count
|
|
|
|
import six
|
|
winreg = six.moves.winreg
|
|
|
|
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
|