MCPcopy Index your code
hub / github.com/nodejs/node / set2dict

Function set2dict

tools/configure.d/nodedownload.py:93–95  ·  view source on GitHub ↗

Convert some keys (iterable) to a dict.

(keys, value=None)

Source from the content-addressed store, hash-verified

91valid values are: none, all, %s. (default is "%s").""" % (", ".join(download_types), download_default)
92
93def set2dict(keys, value=None):
94 """Convert some keys (iterable) to a dict."""
95 return dict((key, value) for (key) in keys)
96
97def parse(opt):
98 """This function parses the options to --download and returns a set such as { icu: true }, etc. """

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…