mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Move Windows libs to libs/windows
This commit is contained in:
parent
3975aaceb2
commit
3a692c94a5
684 changed files with 4 additions and 1 deletions
20
libs/win/jaraco/windows/registry.py
Normal file
20
libs/win/jaraco/windows/registry.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue