MCPcopy 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
15def quote_or_nullptr(key, d):
16 if key in d:
17 return quote(d[key])
18 else:
19 return 'nullptr'
20
21
22def validate_string(val, name, pattern):

Callers 1

from_yamlMethod · 0.85

Calls 1

quoteFunction · 0.85

Tested by

no test coverage detected