(self)
| 321 | |
| 322 | @property |
| 323 | def file(self): |
| 324 | # The old 'file' attribute is no longer used now that we do our own |
| 325 | # read() and readline() buffering, with which it conflicts. |
| 326 | # As an undocumented interface, it should never have been accessed by |
| 327 | # external code, and therefore does not warrant deprecation. |
| 328 | # Nevertheless, we provide this property for now, to avoid suddenly |
| 329 | # breaking any code in the wild that might have been using it in a |
| 330 | # harmless way. |
| 331 | import warnings |
| 332 | warnings.warn( |
| 333 | 'IMAP4.file is unsupported, can cause errors, and may be removed.', |
| 334 | RuntimeWarning, |
| 335 | stacklevel=2) |
| 336 | return self._file |
| 337 | |
| 338 | |
| 339 | def read(self, size): |
no test coverage detected