MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / __getattr__

Method __getattr__

mitmproxy/optmanager.py:188–192  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

186 __copy__ = __deepcopy__
187
188 def __getattr__(self, attr):
189 if attr in self._options:
190 return self._options[attr].current()
191 else:
192 raise AttributeError("No such option: %s" % attr)
193
194 def __setattr__(self, attr, value):
195 # This is slightly tricky. We allow attributes to be set on the instance

Callers

nothing calls this directly

Calls 1

currentMethod · 0.45

Tested by

no test coverage detected