MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ensure_value

Method ensure_value

tools/python-3.11.9-amd64/Lib/optparse.py:882–885  ·  view source on GitHub ↗
(self, attr, value)

Source from the content-addressed store, hash-verified

880 self._update(vars, mode)
881
882 def ensure_value(self, attr, value):
883 if not hasattr(self, attr) or getattr(self, attr) is None:
884 setattr(self, attr, value)
885 return getattr(self, attr)
886
887
888class OptionContainer:

Callers 1

take_actionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected