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

Method __getattr__

Lib/imaplib.py:275–279  ·  view source on GitHub ↗
(self, attr)

Source from the content-addressed store, hash-verified

273
274
275 def __getattr__(self, attr):
276 # Allow UPPERCASE variants of IMAP4 command methods.
277 if attr in Commands:
278 return getattr(self, attr.lower())
279 raise AttributeError("Unknown IMAP4 command: '%s'" % attr)
280
281 def __enter__(self):
282 return self

Callers 1

classify_class_attrsFunction · 0.45

Calls 2

getattrFunction · 0.85
lowerMethod · 0.45

Tested by

no test coverage detected