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

Function read_values

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

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

(base, key)

Source from the content-addressed store, hash-verified

66 return L
67
68def read_values(base, key):
69 """Return dict of registry keys and values.
70
71 All names are converted to lowercase.
72 """
73 try:
74 handle = RegOpenKeyEx(base, key)
75 except RegError:
76 return None
77 d = {}
78 i = 0
79 while True:
80 try:
81 name, value, type = RegEnumValue(handle, i)
82 except RegError:
83 break
84 name = name.lower()
85 d[convert_mbcs(name)] = convert_mbcs(value)
86 i += 1
87 return d
88
89def convert_mbcs(s):
90 dec = getattr(s, "decode", None)

Callers 3

set_macroMethod · 0.85
load_macrosMethod · 0.85
get_msvc_pathsMethod · 0.85

Calls 2

convert_mbcsFunction · 0.85
lowerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…