MCPcopy
hub / github.com/benoitc/gunicorn / __getattr__

Method __getattr__

gunicorn/config.py:66–71  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

64 return "\n".join(lines)
65
66 def __getattr__(self, name):
67 if name == "settings":
68 raise AttributeError()
69 if name not in self.settings:
70 raise AttributeError("No configuration setting for: %s" % name)
71 return self.settings[name].get()
72
73 def __setattr__(self, name, value):
74 if name != "settings" and name in self.settings:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected