Move Windows libs to libs/windows

This commit is contained in:
Labrys of Knossos 2018-12-16 13:36:03 -05:00
commit 3a692c94a5
684 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,20 @@
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