/third_party/python/Lib/test/ |
D | test_lzma.py | 3 from io import BytesIO, UnsupportedOperation, DEFAULT_BUFFER_SIZE 537 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f: 539 with LZMAFile(BytesIO(), "w") as f: 541 with LZMAFile(BytesIO(), "x") as f: 543 with LZMAFile(BytesIO(), "a") as f: 592 LZMAFile(BytesIO(COMPRESSED_XZ), (3, "x")) 594 LZMAFile(BytesIO(COMPRESSED_XZ), "") 596 LZMAFile(BytesIO(COMPRESSED_XZ), "xt") 598 LZMAFile(BytesIO(COMPRESSED_XZ), "x+") 600 LZMAFile(BytesIO(COMPRESSED_XZ), "rx") [all …]
|
D | test_uu.py | 32 super(FakeIO, self).__init__(io.BytesIO(), 61 inp = io.BytesIO(plaintext) 62 out = io.BytesIO() 65 inp = io.BytesIO(plaintext) 66 out = io.BytesIO() 69 inp = io.BytesIO(plaintext) 70 out = io.BytesIO() 78 inp = io.BytesIO(encodedtextwrapped(0o666, "t1", backtick=backtick)) 79 out = io.BytesIO() 82 inp = io.BytesIO( [all …]
|
D | test_aifc.py | 188 fout = aifc.open(io.BytesIO(), 'wb') 197 fout = aifc.open(io.BytesIO(), 'wb') 225 f = io.BytesIO() 245 f = io.BytesIO(b'\x00') 252 f = io.BytesIO() 261 b1 = io.BytesIO(b'WRNG' + struct.pack('>L', 0)) 262 b2 = io.BytesIO(b'FORM' + struct.pack('>L', 4) + b'WRNG') 267 b = io.BytesIO(b'FORM' + struct.pack('>L', 4) + b'AIFF') 277 aifc.open(io.BytesIO(b)) 284 self.assertRaises(aifc.Error, aifc.open, io.BytesIO(b)) [all …]
|
D | test_wave.py | 118 wave.open(io.BytesIO(b)) 124 wave.open(io.BytesIO(b)) 130 wave.open(io.BytesIO(b)) 136 wave.open(io.BytesIO(b)) 143 wave.open(io.BytesIO(b)) 149 wave.open(io.BytesIO(b)) 156 wave.open(io.BytesIO(b)) 163 wave.open(io.BytesIO(b)) 170 wave.open(io.BytesIO(b))
|
D | test_sunau.py | 127 sunau.open(io.BytesIO(b)) 130 sunau.open(io.BytesIO(b)) 136 sunau.open(io.BytesIO(b)) 143 sunau.open(io.BytesIO(b)) 148 sunau.open(io.BytesIO(b)) 154 sunau.open(io.BytesIO(b))
|
D | test_cgi.py | 7 from io import StringIO, BytesIO 42 fp = BytesIO(buf.encode('latin-1')) # FieldStorage expects bytes 106 fake_stdin = BytesIO(data.encode(encoding)) 119 fp = BytesIO(POSTDATA.encode('latin1')) 135 fp = BytesIO(POSTDATA.encode('latin1')) 149 fp = BytesIO(POSTDATA.encode('utf8')) 282 fp = BytesIO(POSTDATA.encode('latin-1')) 301 fp = BytesIO(b"\r\n" + POSTDATA.encode('latin-1')) 319 fp = BytesIO(POSTDATA_NON_ASCII.encode(encoding)) 357 fp = BytesIO(POSTDATA_W3.encode('latin-1')) [all …]
|
D | test_pickle.py | 53 f = io.BytesIO(buf) 64 f = io.BytesIO() 71 f = io.BytesIO(buf) 99 f = io.BytesIO() 108 f = io.BytesIO(buf) 130 f = io.BytesIO() 134 pickler = Pickler(io.BytesIO()) 161 unpickler = Unpickler(io.BytesIO(self.dumps('abc', proto))) 163 unpickler = Unpickler(io.BytesIO()) 250 unpickler = self.unpickler_class(io.BytesIO()) [all …]
|
D | multibytecodec_support.py | 13 from io import BytesIO 177 istream = UTF8Reader(BytesIO(self.tstring[1])) 178 ostream = BytesIO() 197 istream = BytesIO(self.tstring[0]) 198 ostream = UTF8Writer(BytesIO()) 235 istream = self.reader(BytesIO(self.tstring[0])) 236 ostream = UTF8Writer(BytesIO()) 255 istream = UTF8Reader(BytesIO(self.tstring[1])) 256 ostream = self.writer(BytesIO()) 276 stream = BytesIO()
|
D | test_sax.py | 19 from io import BytesIO, StringIO 153 self.check_parse(BytesIO(xml_bytes(self.data, encoding))) 158 self.check_parse(BytesIO(xml_bytes(self.data, encoding, None))) 164 self.check_parse(BytesIO(xml_bytes(self.data, 'utf-8-sig', 'utf-8'))) 169 self.check_parse(BytesIO(xml_bytes(self.data, 'utf-8-sig', None))) 175 self.check_parse(BytesIO(xml_bytes(self.data, 'iso-8859-1'))) 182 self.check_parse(BytesIO(xml_bytes(self.data, 'iso-8859-1', None))) 363 return BytesIO(b"This is a byte stream.") 797 ioclass = BytesIO 820 raw = BytesIO() [all …]
|
D | test_io.py | 242 class CMockFileIO(MockFileIO, io.BytesIO): 245 class PyMockFileIO(MockFileIO, pyio.BytesIO): 262 class CMockUnseekableIO(MockUnseekableIO, io.BytesIO): 265 class PyMockUnseekableIO(MockUnseekableIO, pyio.BytesIO): 463 return self.BufferedRandom(self.BytesIO()) 486 (self.BytesIO, "rws"), (self.StringIO, "rws"), 604 f = self.BytesIO() 608 f = self.BytesIO(data) 731 check(self.BytesIO()) 864 self.BytesIO() [all …]
|
D | test_bz2.py | 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: [all …]
|
D | test_quopri.py | 154 infp = io.BytesIO(p) 155 outfp = io.BytesIO() 162 infp = io.BytesIO(e) 163 outfp = io.BytesIO()
|
D | test_wsgiref.py | 15 from io import StringIO, BytesIO, BufferedReader 72 inp = BufferedReader(BytesIO(data)) 73 out = BytesIO() 321 elif isinstance(value,BytesIO): 322 self.assertIsInstance(env[key],BytesIO) 402 ('wsgi.input', BytesIO()), 541 self, BytesIO(), BytesIO(), StringIO(), kw, 811 h = SimpleHandler(BytesIO(), PartialWriter(), sys.stderr, environ) 836 h = SimpleHandler(BytesIO(), AbortingWriter(), stderr, environ) 855 h = SimpleHandler(BytesIO(), AbortingWriter(), stderr, environ)
|
D | test_gzip.py | 36 class UnseekableIO(io.BytesIO): 147 f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb') 527 bomb = io.BytesIO(bomb) 541 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f: 551 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f: 557 buf = io.BytesIO() 569 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f: 571 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f: 576 with gzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f: 584 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f: [all …]
|
/third_party/python/Lib/encodings/ |
D | quopri_codec.py | 8 from io import BytesIO 12 f = BytesIO(input) 13 g = BytesIO() 19 f = BytesIO(input) 20 g = BytesIO()
|
D | uu_codec.py | 12 from io import BytesIO 18 infile = BytesIO(input) 19 outfile = BytesIO() 39 infile = BytesIO(input) 40 outfile = BytesIO()
|
/third_party/python/Lib/ |
D | shelve.py | 60 from io import BytesIO 113 f = BytesIO(self.dict[key.encode(self.keyencoding)]) 122 f = BytesIO() 194 f = BytesIO(value) 199 f = BytesIO(value) 204 f = BytesIO(value) 209 f = BytesIO(value) 214 f = BytesIO(value)
|
D | quopri.py | 109 from io import BytesIO 110 infp = BytesIO(s) 111 outfp = BytesIO() 163 from io import BytesIO 164 infp = BytesIO(s) 165 outfp = BytesIO()
|
/third_party/cef/tools/yapf/yapf/yapflib/ |
D | py3compat.py | 25 BytesIO = io.BytesIO variable 47 StringIO = BytesIO = cStringIO.StringIO
|
/third_party/PyYAML/tests/lib/ |
D | test_input_output.py | 21 output = yaml.full_load(io.BytesIO(input)) 42 yaml.full_load(io.BytesIO(input)) 65 stream = io.BytesIO() 96 stream = io.BytesIO() 127 stream = io.BytesIO()
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | _compat.py | 32 from io import BytesIO, StringIO 61 from cStringIO import StringIO as BytesIO, StringIO unknown 62 NativeStringIO = BytesIO
|
/third_party/python/Lib/email/mime/ |
D | audio.py | 11 from io import BytesIO 33 fakefile = BytesIO(hdr)
|
/third_party/skia/third_party/externals/jinja2/ |
D | _compat.py | 22 from io import BytesIO, StringIO 55 from cStringIO import StringIO as BytesIO, StringIO unknown 57 NativeStringIO = BytesIO
|
/third_party/jinja2/ |
D | _compat.py | 22 from io import BytesIO, StringIO 55 from cStringIO import StringIO as BytesIO, StringIO unknown 57 NativeStringIO = BytesIO
|
/third_party/python/Lib/distutils/tests/ |
D | test_log.py | 18 stdout = io.TextIOWrapper(io.BytesIO(), 20 stderr = io.TextIOWrapper(io.BytesIO(),
|