Home
last modified time | relevance | path

Searched refs:TextIOWrapper (Results 1 – 25 of 75) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_io.py452 return self.TextIOWrapper(UnseekableReader(), "ascii")
458 return self.TextIOWrapper(UnseekableWriter(), "ascii")
2512 t = self.TextIOWrapper(b)
2524 t = self.TextIOWrapper.__new__(self.TextIOWrapper)
2526 t = self.TextIOWrapper.__new__(self.TextIOWrapper)
2541 self.TextIOWrapper(b, encoding="hex")
2546 t = self.TextIOWrapper(b)
2549 t = self.TextIOWrapper(b, encoding="ascii")
2566 t = self.TextIOWrapper(b, encoding="utf-8")
2567 modname = self.TextIOWrapper.__module__
[all …]
Dtest_getpass.py4 from io import BytesIO, StringIO, TextIOWrapper
74 stream = TextIOWrapper(BytesIO(), encoding="ascii")
Dtest_cmd_line_script.py538 text = io.TextIOWrapper(io.BytesIO(stderr), 'ascii').read()
550 text = io.TextIOWrapper(io.BytesIO(stderr), 'ascii').read()
561 text = io.TextIOWrapper(io.BytesIO(stderr), "ascii").read()
Dtest_uu.py22 class FakeIO(io.TextIOWrapper):
/external/python/cpython2/Lib/test/
Dtest_io.py2037 t = self.TextIOWrapper(b)
2049 t = self.TextIOWrapper.__new__(self.TextIOWrapper)
2051 t = self.TextIOWrapper.__new__(self.TextIOWrapper)
2066 self.TextIOWrapper(b, encoding="hex_codec")
2071 t = self.TextIOWrapper(b)
2074 t = self.TextIOWrapper(b, encoding="ascii")
2090 t = self.TextIOWrapper(b, encoding="utf-8")
2091 modname = self.TextIOWrapper.__module__
2107 t = self.TextIOWrapper(b, newline="\n", line_buffering=True)
2118 t = self.TextIOWrapper(b, encoding="utf8")
[all …]
/external/python/cpython2/Lib/
Dio.py57 IncrementalNewlineDecoder, TextIOWrapper)
88 for klass in (StringIO, TextIOWrapper):
/external/python/cpython3/Lib/distutils/tests/
Dtest_log.py18 stdout = io.TextIOWrapper(io.BytesIO(),
20 stderr = io.TextIOWrapper(io.BytesIO(),
/external/python/cpython3/Lib/
Dio.py57 IncrementalNewlineDecoder, TextIOWrapper)
90 for klass in (StringIO, TextIOWrapper):
Dgetpass.py51 input = io.TextIOWrapper(tty)
Dcgi.py34 from io import StringIO, BytesIO, TextIOWrapper
151 if isinstance(fp, TextIOWrapper):
414 elif isinstance(fp, TextIOWrapper):
Dlzma.py305 return io.TextIOWrapper(binary_file, encoding, errors, newline)
Dbz2.py321 return io.TextIOWrapper(binary_file, encoding, errors, newline)
Dos.py990 return _wrap_close(io.TextIOWrapper(proc.stdout), proc)
996 return _wrap_close(io.TextIOWrapper(proc.stdin), proc)
Dtokenize.py30 from io import TextIOWrapper
451 text = TextIOWrapper(buffer, encoding, line_buffering=True)
Dsubprocess.py755 self.stdin = io.TextIOWrapper(self.stdin, write_through=True,
761 self.stdout = io.TextIOWrapper(self.stdout,
766 self.stderr = io.TextIOWrapper(self.stderr,
/external/python/cpython3/Lib/email/
Dparser.py10 from io import StringIO, TextIOWrapper
108 fp = TextIOWrapper(fp, encoding='ascii', errors='surrogateescape')
/external/python/cpython3/Lib/importlib/
Dresources.py8 from io import BytesIO, TextIOWrapper
125 return TextIOWrapper(reader.open_resource(resource), encoding, errors)
147 return TextIOWrapper(BytesIO(data), encoding, errors)
/external/python/cpython2/Misc/NEWS.d/next/Core and Builtins/
D2017-10-07-10-13-15.bpo-25862.FPYBA5.rst1 Fix assertion failures in the ``tell()`` method of ``io.TextIOWrapper``.
/external/yapf/yapf/yapflib/
Dpy3compat.py39 wrapper = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8')
/external/python/cpython2/Doc/library/
Dio.rst48 from and to :class:`unicode` strings. :class:`TextIOWrapper`, which extends
173 :class:`TextIOBase` (specifically :class:`TextIOWrapper`). When used to open
772 .. class:: TextIOWrapper(buffer, encoding=None, errors=None, newline=None, line_buffering=False)
792 single: universal newlines; io.TextIOWrapper class
814 :class:`TextIOWrapper` provides one attribute in addition to those of
824 An in-memory stream for unicode text. It inherits :class:`TextIOWrapper`.
831 The *newline* argument works like that of :class:`TextIOWrapper`.
838 :class:`TextIOWrapper` and its parents:
902 Also, :meth:`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both
920 :class:`TextIOWrapper` objects are not thread-safe.
[all …]
/external/python/cpython3/Doc/library/
Dio.rst187 from strings. :class:`TextIOWrapper`, which extends it, is a buffered text
847 .. class:: TextIOWrapper(buffer, encoding=None, errors=None, newline=None, \
871 single: universal newlines; io.TextIOWrapper class
895 not to be buffered: any data written on the :class:`TextIOWrapper`
907 :class:`TextIOWrapper` provides these members in addition to those of
951 The *newline* argument works like that of :class:`TextIOWrapper`.
1017 :meth:`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both quite slow
1034 :class:`TextIOWrapper` objects are not thread-safe.
1048 will wrap a buffered object inside a :class:`TextIOWrapper`. This includes
Dgzip.rst49 :class:`io.TextIOWrapper` instance with the specified encoding, error
87 :class:`io.TextIOWrapper`).
/external/python/setuptools/setuptools/
Ddist.py887 if not isinstance(sys.stdout, io.TextIOWrapper):
901 sys.stdout = io.TextIOWrapper(
906 sys.stdout = io.TextIOWrapper(
/external/python/cpython3/Lib/xml/sax/
Dsaxutils.py108 return io.TextIOWrapper(buffer, encoding=encoding,
/external/python/cpython2/Lib/xml/sax/
Dsaxutils.py106 class _UnbufferedTextIOWrapper(io.TextIOWrapper):

123