Searched refs:filelike (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython3/Lib/wsgiref/ |
D | util.py | 14 def __init__(self, filelike, blksize=8192): argument 15 self.filelike = filelike 17 if hasattr(filelike,'close'): 18 self.close = filelike.close 21 data = self.filelike.read(self.blksize) 30 data = self.filelike.read(self.blksize)
|
/external/python/cpython2/Lib/wsgiref/ |
D | util.py | 14 def __init__(self, filelike, blksize=8192): argument 15 self.filelike = filelike 17 if hasattr(filelike,'close'): 18 self.close = filelike.close 21 data = self.filelike.read(self.blksize) 30 data = self.filelike.read(self.blksize)
|
/external/python/cpython3/Lib/test/ |
D | test_print.py | 105 class filelike: class 116 f = filelike()
|
D | test_wsgiref.py | 349 self.assertFalse(it.filelike.closed) 354 self.assertFalse(it.filelike.closed) 357 self.assertTrue(it.filelike.closed)
|
D | pickletester.py | 1294 filelike = StringIO() 1295 dis(s, out=filelike) 1296 got = filelike.getvalue()
|
/external/python/cpython2/Lib/test/ |
D | test_wsgiref.py | 185 self.assertFalse(it.filelike.closed) 190 self.assertFalse(it.filelike.closed) 193 self.assertTrue(it.filelike.closed)
|
D | pickletester.py | 909 filelike = cStringIO.StringIO() 910 dis(s, out=filelike) 911 got = filelike.getvalue()
|
/external/python/cpython2/Doc/library/ |
D | wsgiref.rst | 151 .. class:: FileWrapper(filelike, blksize=8192) 156 optional *blksize* parameter will be repeatedly passed to the *filelike* 160 If *filelike* has a :meth:`close` method, the returned object will also have a 161 :meth:`close` method, and it will invoke the *filelike* object's :meth:`close` 170 filelike = StringIO("This is an example file-like object"*10) 171 wrapper = FileWrapper(filelike, blksize=5)
|
/external/python/cpython3/Doc/library/ |
D | wsgiref.rst | 151 .. class:: FileWrapper(filelike, blksize=8192) 156 optional *blksize* parameter will be repeatedly passed to the *filelike* 160 If *filelike* has a :meth:`close` method, the returned object will also have a 161 :meth:`close` method, and it will invoke the *filelike* object's :meth:`close` 170 filelike = StringIO("This is an example file-like object"*10) 171 wrapper = FileWrapper(filelike, blksize=5)
|