MCPcopy
hub / github.com/raspberrypi/documentation / variable

Method variable

scripts/ninja_syntax.py:48–53  ·  view source on GitHub ↗
(self, key, value, indent=0)

Source from the content-addressed store, hash-verified

46 self.output.write('# ' + text + '\n')
47
48 def variable(self, key, value, indent=0):
49 if value is None:
50 return
51 if isinstance(value, list):
52 value = ' '.join(filter(None, value)) # Filter out empty strings.
53 self._line('%s = %s' % (key, value), indent)
54
55 def pool(self, name, depth):
56 self._line('pool %s' % name)

Callers 4

poolMethod · 0.95
ruleMethod · 0.95
buildMethod · 0.95

Calls 1

_lineMethod · 0.95

Tested by

no test coverage detected