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