Searched refs:fileobj (Results 1 – 7 of 7) sorted by relevance
42 def main(fileobj): argument46 line = fileobj.readline()59 if fileobj == sys.stdin:60 fileobj = sys.stdout62 fileobj.seek(0)63 fileobj.truncate(0)64 fileobj.write(output)
83 ... self.fileobj = open(self.filename, 'rb')87 ... chunk = self.fileobj.read(self.chunk_size)156 ``fileobj.seek(pos)`` to move around the file much more efficiently.176 ... self.fileobj = open(self.filename, 'rb')178 ... self.fileobj.seek(start)188 ... chunk = self.fileobj.read(self.chunk_size)
18 actual = gzip.GzipFile(fileobj=six.BytesIO(res.body)).read()
76 fileobj=self.buffer)
70 with gzip.GzipFile(fileobj=compressed_trace, mode='w') as f:
977 fileobj = self.make_tempfile()989 fileobj.write(data)991 fileobj.seek(0)992 self.body_file_raw = fileobj
980 gzip_f = GzipFile(filename='', mode='r', fileobj=BytesIO(self.body))