Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
33
def
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
41
DIRECTORIES = set()
42
Callers
2
make_name_target
Method · 0.85
main
Function · 0.85
Calls
5
str
Function · 0.85
sub
Method · 0.45
get
Method · 0.45
group
Method · 0.45
rstrip
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…