Searched refs:filelike (Results 1 – 5 of 5) sorted by relevance
14 def __init__(self, filelike, blksize=8192): argument15 self.filelike = filelike17 if hasattr(filelike,'close'):18 self.close = filelike.close28 data = self.filelike.read(self.blksize)37 data = self.filelike.read(self.blksize)
105 class filelike: class116 f = filelike()
352 self.assertFalse(it.filelike.closed)357 self.assertFalse(it.filelike.closed)360 self.assertTrue(it.filelike.closed)
1495 filelike = StringIO()1496 dis(s, out=filelike)1497 got = filelike.getvalue()
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 a161 :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)