• Home
  • Raw
  • Download

Lines Matching refs:BZ2File

22 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor
96 self.assertRaises(TypeError, BZ2File, 123.456)
97 self.assertRaises(ValueError, BZ2File, os.devnull, "z")
98 self.assertRaises(ValueError, BZ2File, os.devnull, "rx")
99 self.assertRaises(ValueError, BZ2File, os.devnull, "rbt")
100 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=0)
101 self.assertRaises(ValueError, BZ2File, os.devnull, compresslevel=10)
104 self.assertRaises(TypeError, BZ2File, os.devnull, "r", 3)
108 with BZ2File(self.filename) as bz2f:
114 with BZ2File(self.filename) as bz2f:
119 with BZ2File(self.filename) as bz2f:
130 with BZ2File(self.filename) as bz2f:
138 with BZ2File(self.filename) as bz2f:
143 with BZ2File(self.filename) as bz2f:
148 with BZ2File(self.filename) as bz2f:
154 with BZ2File(self.filename) as bz2f:
165 with BZ2File(self.filename) as bz2f:
176 with BZ2File(self.filename) as bz2f:
181 with BZ2File(self.filename) as bz2f:
189 with BZ2File(self.filename) as bz2f:
201 with BZ2File(self.filename) as bz2f:
208 with BZ2File(self.filename) as bz2f:
215 with BZ2File(self.filename) as bz2f:
221 with BZ2File(self.filename) as bz2f:
227 with BZ2File(self.filename) as bz2f:
232 with BZ2File(self.filename) as bz2f:
238 bz2f = BZ2File(self.filename)
245 with BZ2File(self.filename, "w") as bz2f:
252 with BZ2File(self.filename, "w") as bz2f:
265 with BZ2File(self.filename, "w", compresslevel=5) as bz2f:
271 with BZ2File(self.filename, "w") as bz2f:
281 with BZ2File(self.filename, "w") as bz2f:
284 with BZ2File(self.filename, "r") as bz2f:
289 with BZ2File(self.filename, "w") as bz2f:
292 with BZ2File(self.filename, "a") as bz2f:
300 with BZ2File(self.filename) as bz2f:
307 with BZ2File(self.filename) as bz2f:
314 with BZ2File(self.filename) as bz2f:
321 with BZ2File(self.filename) as bz2f:
330 with BZ2File(self.filename) as bz2f:
336 with BZ2File(self.filename) as bz2f:
342 with BZ2File(self.filename) as bz2f:
349 with BZ2File(self.filename) as bz2f:
356 with BZ2File(self.filename) as bz2f:
364 with BZ2File(self.filename) as bz2f:
372 with BZ2File(self.filename) as bz2f:
379 with BZ2File(self.filename) as bz2f:
387 bz2f = BZ2File(rawf)
395 bz2f = BZ2File(BytesIO(self.DATA))
404 bz2f = BZ2File(BytesIO(), "w")
413 bz2f = BZ2File(src)
421 bz2f = BZ2File(BytesIO(self.DATA))
430 bz2f = BZ2File(BytesIO(), "w")
438 bz2f = BZ2File(BytesIO(self.DATA))
447 bz2f = BZ2File(BytesIO(), "w")
457 o = BZ2File(self.filename)
461 self.assertRaises(OSError, BZ2File, "/non/existent")
468 with BZ2File(self.filename) as bz2f:
471 with BZ2File(self.filename) as bz2f:
477 with BZ2File(self.filename, "wb") as f:
479 f = BZ2File(self.filename, "rb")
489 with BZ2File(self.filename, "wb") as f:
500 with BZ2File(self.filename, 'wb') as f:
512 with BZ2File(self.filename) as bz2f:
516 with BZ2File(self.filename) as bz2f:
520 with BZ2File(self.filename) as bz2f:
529 with BZ2File(self.filename, "w") as bz2f:
531 with BZ2File(self.filename, "a") as bz2f:
533 with BZ2File(self.filename) as bz2f:
542 with BZ2File(bytes_filename, "wb") as f:
544 with BZ2File(bytes_filename, "rb") as f:
547 with BZ2File(str_filename, "rb") as f:
552 with BZ2File(filename, "wb") as f:
554 with BZ2File(filename, "rb") as f:
562 decomp = BZ2File(BytesIO(bomb))
573 with BZ2File(bio) as bz2f:
580 with BZ2File(bio) as bz2f:
588 with BZ2File(bio, "w") as bz2f:
596 with BZ2File(bio) as bz2f:
603 with BZ2File(bio) as bz2f:
611 with BZ2File(BytesIO(truncated)) as f:
613 with BZ2File(BytesIO(truncated)) as f:
618 with BZ2File(BytesIO(truncated[:i])) as f: