Home
last modified time | relevance | path

Searched refs:detect_encoding (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/json/
D__init__.py244 def detect_encoding(b): function
341 s = s.decode(detect_encoding(s), 'surrogatepass')
/external/yapf/yapf/yapflib/
Dfile_resources.py267 encoding = tokenize.detect_encoding(fd.readline)[0]
294 return tokenize.detect_encoding(fd.readline)[0]
/external/python/cpython3/Doc/library/
Dtokenize.rst99 .. function:: detect_encoding(readline)
101 The :func:`detect_encoding` function is used to detect the encoding that
118 :func:`detect_encoding` to detect the file encoding.
124 :func:`detect_encoding`.
Dlinecache.rst19 function uses :func:`tokenize.detect_encoding` to get the encoding of the
/external/python/cpython3/Lib/
Dtokenize.py297 def detect_encoding(readline): function
396 encoding, lines = detect_encoding(buffer.readline)
425 encoding, consumed = detect_encoding(readline)
Dimp.py302 encoding = tokenize.detect_encoding(file.readline)[0]
Dtrace.py273 encoding, _ = tokenize.detect_encoding(fp.readline)
/external/python/setuptools/setuptools/_distutils/command/
Dbuild_scripts.py82 encoding, lines = tokenize.detect_encoding(f.readline)
/external/python/cpython3/Lib/distutils/command/
Dbuild_scripts.py82 encoding, lines = tokenize.detect_encoding(f.readline)
/external/python/cpython3/Tools/scripts/
Dreindent.py122 encoding, _ = tokenize.detect_encoding(f.readline)
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_parser.py298 encoding = tokenize.detect_encoding(fp.readline)[0]
/external/python/cpython3/Lib/test/
Dtest_tokenize.py4 STRING, ENDMARKER, ENCODING, tok_name, detect_encoding,
/external/python/cpython2/Lib/lib2to3/pgen2/
Dtokenize.py253 def detect_encoding(readline): function
/external/python/cpython3/Lib/idlelib/
Diomenu.py286 enc, _ = tokenize.detect_encoding(io.BytesIO(encoded).readline)
/external/python/cpython3/Lib/lib2to3/pgen2/
Dtokenize.py241 def detect_encoding(readline): function
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_parser.py594 encoding = tokenize.detect_encoding(fp.readline)[0]
/external/python/cpython2/Lib/lib2to3/
Drefactor.py333 encoding = tokenize.detect_encoding(f.readline)[0]
/external/python/cpython3/Lib/lib2to3/
Drefactor.py318 encoding = tokenize.detect_encoding(f.readline)[0]
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py711 encoding = tokenize.detect_encoding(source_bytes_readline)
/external/python/cpython3/Misc/
DHISTORY7861 - Issue #14629: tokenizer.detect_encoding will specify the filename in the
7864 - Issue #14629: Raise SyntaxError in tokenizer.detect_encoding if the
11596 tokenize.detect_encoding() and open it in read only mode.
13664 - ``tokenize.detect_encoding`` now returns ``'utf-8-sig'`` when a UTF-8 BOM is
15825 - Issue #4021: tokenize.detect_encoding() now raises a SyntaxError when the
16912 strings. A new detect_encoding function has been added for