MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / make_id

Function make_id

tools/python-3.11.9-amd64/Lib/msilib/__init__.py:179–185  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

177 add_data(db, table, getattr(module, table))
178
179def make_id(str):
180 identifier_chars = string.ascii_letters + string.digits + "._"
181 str = "".join([c if c in identifier_chars else "_" for c in str])
182 if str[0] in (string.digits + "."):
183 str = "_" + str
184 assert re.match("^[A-Za-z_][A-Za-z0-9_.]*$", str), "FILE"+str
185 return str
186
187def gen_uuid():
188 return "{"+UuidCreate().upper()+"}"

Callers 2

gen_idMethod · 0.85
__init__Method · 0.85

Calls 2

joinMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected