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

Method file

Lib/imaplib.py:323–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

convert_openssl_errorFunction · 0.80

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected