MCPcopy Index your code
hub / github.com/python/cpython / __getattr__

Method __getattr__

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

Source from the content-addressed store, hash-verified

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

Callers 1

classify_class_attrsFunction · 0.45

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected