Searched defs:BytesIO (Results 1 - 25 of 40) sorted by relevance

12

/external/python/cpython3/Lib/email/mime/
H A Daudio.py11 from io import BytesIO namespace
34 fakefile = BytesIO(hdr)
/external/python/cpython3/Lib/encodings/
H A Dquopri_codec.py8 from io import BytesIO namespace
12 f = BytesIO(input)
13 g = BytesIO()
19 f = BytesIO(input)
20 g = BytesIO()
H A Duu_codec.py12 from io import BytesIO namespace
18 infile = BytesIO(input)
19 outfile = BytesIO()
35 infile = BytesIO(input)
36 outfile = BytesIO()
/external/scapy/test/tls/
H A Dtravis_test_server.py19 from io import BytesIO, StringIO namespace
32 new_out, new_err = (StringIO(), StringIO()) if six.PY3 else (BytesIO(), BytesIO())
/external/tensorflow/tensorflow/python/kernel_tests/
H A Ddecode_compressed_op_test.py24 from six import BytesIO namespace
40 out = BytesIO()
/external/python/cpython3/Lib/
H A Dquopri.py109 from io import BytesIO namespace
110 infp = BytesIO(s)
111 outfp = BytesIO()
163 from io import BytesIO namespace
164 infp = BytesIO(s)
165 outfp = BytesIO()
H A Dshelve.py60 from io import BytesIO namespace
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)
H A Dxdrlib.py8 from io import BytesIO namespace
54 self.__buf = BytesIO()
H A Dcgi.py34 from io import StringIO, BytesIO, TextIOWrapper namespace
462 fp = BytesIO(qs)
768 self.file = self.__file = BytesIO() # store data as bytes for files
H A Dsocketserver.py787 from io import BytesIO namespace
789 self.rfile = BytesIO(self.packet)
790 self.wfile = BytesIO()
H A Dplistlib.py59 from io import BytesIO namespace
187 return load(BytesIO(data), fmt=None, use_builtin_types=False,
199 f = BytesIO()
1004 fp = BytesIO(value)
1023 fp = BytesIO()
/external/python/cpython3/Lib/wsgiref/
H A Dutil.py145 from io import StringIO, BytesIO namespace
146 environ.setdefault('wsgi.input', BytesIO())
/external/python/cpython3/Lib/distutils/tests/
H A Dtest_cygwinccompiler.py5 from io import BytesIO namespace
23 self.stdout = BytesIO(exes[self.cmd])
/external/python/cpython3/Lib/test/
H A Dtest_getpass.py4 from io import BytesIO, StringIO, TextIOWrapper namespace
74 stream = TextIOWrapper(BytesIO(), encoding="ascii")
131 fileio.return_value = BytesIO()
H A Dmultibytecodec_support.py13 from io import BytesIO namespace
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()
[all...]
H A Dtest_base64.py69 from io import BytesIO, StringIO namespace
70 infp = BytesIO(b'abcdefghijklmnopqrstuvwxyz'
73 outfp = BytesIO()
80 self.assertRaises(TypeError, base64.encode, StringIO('abc'), BytesIO())
81 self.assertRaises(TypeError, base64.encode, BytesIO(b'abc'), StringIO())
85 from io import BytesIO, StringIO namespace
86 infp = BytesIO(b'd3d3LnB5dGhvbi5vcmc=')
87 outfp = BytesIO()
91 self.assertRaises(TypeError, base64.encode, StringIO('YWJj\n'), BytesIO())
92 self.assertRaises(TypeError, base64.encode, BytesIO(
[all...]
H A Dtest_cgi.py9 from io import StringIO, BytesIO namespace
43 fp = BytesIO(buf.encode('latin-1')) # FieldStorage expects bytes
112 fake_stdin = BytesIO(data.encode(encoding))
125 fp = BytesIO(POSTDATA.encode('latin1'))
240 fp = BytesIO(POSTDATA.encode('latin-1'))
259 fp = BytesIO(b"\r\n" + POSTDATA.encode('latin-1'))
277 fp = BytesIO(POSTDATA_NON_ASCII.encode(encoding))
315 fp = BytesIO(POSTDATA_W3.encode('latin-1'))
342 fp = BytesIO(POSTDATA.encode('latin-1'))
349 fp = BytesIO(
[all...]
H A Dtest_plistlib.py11 from io import BytesIO namespace
219 b = BytesIO()
222 pl2 = plistlib.load(BytesIO(b.getvalue()), fmt=fmt)
224 pl2 = plistlib.load(BytesIO(b.getvalue()))
236 b = BytesIO()
239 pl2 = plistlib.load(BytesIO(b.getvalue()),
273 b = BytesIO()
290 fp = BytesIO()
/external/python/cpython3/Lib/test/test_json/
H A Dtest_decode.py2 from io import StringIO, BytesIO namespace
/external/libmojo/third_party/jinja2/
H A D_compat.py31 from io import BytesIO, StringIO namespace
60 from cStringIO import StringIO as BytesIO, StringIO namespace
61 NativeStringIO = BytesIO
H A Dbccache.py24 from jinja2._compat import BytesIO, pickle, PY2, text_type namespace
100 self.load_bytecode(BytesIO(string))
104 out = BytesIO()
/external/python/cpython3/Lib/email/
H A Dgenerator.py15 from io import StringIO, BytesIO namespace
143 # BytesGenerator overrides this to return BytesIO.
411 return BytesIO()
H A Dmessage.py12 from io import BytesIO, StringIO namespace
178 fp = BytesIO()
293 in_file = BytesIO(bpayload)
294 out_file = BytesIO()
/external/scapy/scapy/modules/krack/
H A Dcrypto.py3 from io import BytesIO namespace
255 payload = BytesIO(pkt[Raw].load)
/external/python/cpython2/Lib/
H A D_pyio.py152 opened in a text mode, and for bytes a BytesIO can be used like a file
792 class BytesIO(BufferedIOBase): class in inherits:BufferedIOBase
1998 super(StringIO, self).__init__(BytesIO(),

Completed in 746 milliseconds

12