Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl/crawl
/ quote_or_nullptr
Function
quote_or_nullptr
crawl-ref/source/util/genutil.py:15–19 ·
view source on GitHub ↗
(key, d)
Source
from the content-addressed store, hash-verified
13
# import yaml # pip install pyyaml
14
15
def
quote_or_nullptr(key, d):
16
if
key in d:
17
return
quote(d[key])
18
else
:
19
return
'nullptr'
20
21
22
def
validate_string(val, name, pattern):
Callers
1
from_yaml
Method · 0.85
Calls
1
quote
Function · 0.85
Tested by
no test coverage detected