MCPcopy Index your code
hub / github.com/python/cpython / read_values

Method read_values

Tools/c-analyzer/distutils/msvc9compiler.py:87–106  ·  view source on GitHub ↗

Return dict of registry keys and values. All names are converted to lowercase.

(cls, base, key)

Source from the content-addressed store, hash-verified

85 read_keys = classmethod(read_keys)
86
87 def read_values(cls, base, key):
88 """Return dict of registry keys and values.
89
90 All names are converted to lowercase.
91 """
92 try:
93 handle = RegOpenKeyEx(base, key)
94 except RegError:
95 return None
96 d = {}
97 i = 0
98 while True:
99 try:
100 name, value, type = RegEnumValue(handle, i)
101 except RegError:
102 break
103 name = name.lower()
104 d[cls.convert_mbcs(name)] = cls.convert_mbcs(value)
105 i += 1
106 return d
107 read_values = classmethod(read_values)
108
109 def convert_mbcs(s):

Callers 1

get_valueMethod · 0.80

Calls 2

convert_mbcsMethod · 0.80
lowerMethod · 0.45

Tested by

no test coverage detected