(self, attr)
| 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 |
no test coverage detected