Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl/crawl
/ enumify
Function
enumify
crawl-ref/source/util/genutil.py:55–56 ·
view source on GitHub ↗
(name, enum)
Source
from the content-addressed store, hash-verified
53
54
55
def
enumify(name, enum):
56
return
"{enum}_{name}"
.format(enum=enum, name=name).replace(
' '
,
'_'
).upper()
57
58
59
def
quote(s):
Callers
6
recommended_species
Function · 0.85
skills
Function · 0.85
set_recommended_weapons
Method · 0.85
recommended_jobs
Function · 0.85
species_flags
Function · 0.85
undead_type
Function · 0.85
Calls
2
replace
Method · 0.80
format
Method · 0.45
Tested by
no test coverage detected