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

Method __getattr__

module/gui/connector.py:128–135  ·  view source on GitHub ↗

redirect and wrap call in Wrapper instance, locks dispatcher

(self, attr)

Source from the content-addressed store, hash-verified

126 self.server = server
127
128 def __getattr__(self, attr):
129 """
130 redirect and wrap call in Wrapper instance, locks dispatcher
131 """
132 self.mutex.lock()
133 self.fname = attr
134 f = self.Wrapper(getattr(self.server, attr), self.mutex, self)
135 return f
136
137 class Wrapper(object):
138 """

Callers

nothing calls this directly

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected