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

Function make_id

Tools/msi/csv_to_wxs.py:33–39  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

31}
32
33def make_id(path):
34 return re.sub(
35 r'[^A-Za-z0-9_.]',
36 lambda m: ID_CHAR_SUBS.get(m.group(0), '_'),
37 str(path).rstrip('/\\'),
38 flags=re.I
39 )
40
41DIRECTORIES = set()
42

Callers 2

make_name_targetMethod · 0.85
mainFunction · 0.85

Calls 5

strFunction · 0.85
subMethod · 0.45
getMethod · 0.45
groupMethod · 0.45
rstripMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…