MCPcopy
hub / github.com/cherrypy/cherrypy / setdefault

Method setdefault

cherrypy/_cpconfig.py:183–186  ·  view source on GitHub ↗
(self, key, default)

Source from the content-addressed store, hash-verified

181 self.target = target
182
183 def setdefault(self, key, default):
184 if not hasattr(self.target, key):
185 setattr(self.target, key, default)
186 return getattr(self.target, key)
187
188
189# Sphinx begin config.environments

Callers 4

namespace_handlerMethod · 0.45
mergeFunction · 0.45
tool_decoratorMethod · 0.45
populateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected