Home
last modified time | relevance | path

Searched refs:_ProxyFile (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython2/Lib/
Dmailbox.py379 return _ProxyFile(f)
1063 return _ProxyFile(f)
1870 class _ProxyFile: class
1932 class _PartialFile(_ProxyFile):
1937 _ProxyFile.__init__(self, f, start)
1943 return _ProxyFile.tell(self) - self._start
1953 _ProxyFile.seek(self, offset, whence)
1962 return _ProxyFile._read(self, size, read_method)
/external/python/cpython3/Lib/
Dmailbox.py396 return _ProxyFile(f)
1077 return _ProxyFile(f)
1923 class _ProxyFile: class
2024 class _PartialFile(_ProxyFile):
2029 _ProxyFile.__init__(self, f, start)
2035 return _ProxyFile.tell(self) - self._start
2045 _ProxyFile.seek(self, offset, whence)
2054 return _ProxyFile._read(self, size, read_method)
/external/python/cpython2/Lib/test/
Dtest_mailbox.py1828 proxy0 = mailbox._ProxyFile(self._file)
1831 proxy1 = mailbox._ProxyFile(self._file, 0)
1837 self._test_read(mailbox._ProxyFile(self._file))
1842 self._test_readline(mailbox._ProxyFile(self._file))
1847 self._test_readlines(mailbox._ProxyFile(self._file))
1852 self._test_iteration(mailbox._ProxyFile(self._file))
1856 self._test_seek_and_tell(mailbox._ProxyFile(self._file))
1860 self._test_close(mailbox._ProxyFile(self._file))
/external/python/cpython3/Lib/test/
Dtest_mailbox.py2033 proxy0 = mailbox._ProxyFile(self._file)
2036 proxy1 = mailbox._ProxyFile(self._file, 0)
2042 self._test_read(mailbox._ProxyFile(self._file))
2047 self._test_readline(mailbox._ProxyFile(self._file))
2052 self._test_readlines(mailbox._ProxyFile(self._file))
2057 self._test_iteration(mailbox._ProxyFile(self._file))
2061 self._test_seek_and_tell(mailbox._ProxyFile(self._file))
2065 self._test_close(mailbox._ProxyFile(self._file))
/external/python/cpython2/Misc/NEWS.d/
D2.7.3rc1.rst1282 error, and _ProxyFile now closes the wrapped file.