Home
last modified time | relevance | path

Searched refs:filelike (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Lib/wsgiref/
Dutil.py14 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/
Dutil.py14 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/
Dtest_print.py105 class filelike: class
116 f = filelike()
Dtest_wsgiref.py349 self.assertFalse(it.filelike.closed)
354 self.assertFalse(it.filelike.closed)
357 self.assertTrue(it.filelike.closed)
Dpickletester.py1294 filelike = StringIO()
1295 dis(s, out=filelike)
1296 got = filelike.getvalue()
/external/python/cpython2/Lib/test/
Dtest_wsgiref.py185 self.assertFalse(it.filelike.closed)
190 self.assertFalse(it.filelike.closed)
193 self.assertTrue(it.filelike.closed)
Dpickletester.py909 filelike = cStringIO.StringIO()
910 dis(s, out=filelike)
911 got = filelike.getvalue()
/external/python/cpython2/Doc/library/
Dwsgiref.rst151 .. 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/
Dwsgiref.rst151 .. 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)