Lines Matching refs:BytesIO
6 from io import BytesIO, DEFAULT_BUFFER_SIZE
398 bz2f = BZ2File(BytesIO(self.DATA))
407 bz2f = BZ2File(BytesIO(), "w")
414 src = BytesIO(self.DATA)
424 bz2f = BZ2File(BytesIO(self.DATA))
433 bz2f = BZ2File(BytesIO(), "w")
441 bz2f = BZ2File(BytesIO(self.DATA))
450 bz2f = BZ2File(BytesIO(), "w")
565 decomp = BZ2File(BytesIO(bomb))
575 with BytesIO(self.DATA) as bio:
582 with BytesIO(self.DATA) as bio:
590 with BytesIO() as bio:
598 with BytesIO(self.DATA) as bio:
605 with BytesIO(self.DATA) as bio:
614 with BZ2File(BytesIO(truncated)) as f:
616 with BZ2File(BytesIO(truncated)) as f:
621 with BZ2File(BytesIO(truncated[:i])) as f:
628 with BZ2File(BytesIO(), 'w') as f:
958 with self.open(BytesIO(self.DATA), "r") as f:
960 with self.open(BytesIO(self.DATA), "rb") as f:
963 with self.open(BytesIO(self.DATA), "rt", encoding="utf-8") as f: