Searched refs:detect_encoding (Results 1 – 20 of 20) sorted by relevance
/external/python/cpython3/Lib/json/ |
D | __init__.py | 244 def detect_encoding(b): function 341 s = s.decode(detect_encoding(s), 'surrogatepass')
|
/external/yapf/yapf/yapflib/ |
D | file_resources.py | 267 encoding = tokenize.detect_encoding(fd.readline)[0] 294 return tokenize.detect_encoding(fd.readline)[0]
|
/external/python/cpython3/Doc/library/ |
D | tokenize.rst | 99 .. 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`.
|
D | linecache.rst | 19 function uses :func:`tokenize.detect_encoding` to get the encoding of the
|
/external/python/cpython3/Lib/ |
D | tokenize.py | 297 def detect_encoding(readline): function 396 encoding, lines = detect_encoding(buffer.readline) 425 encoding, consumed = detect_encoding(readline)
|
D | imp.py | 302 encoding = tokenize.detect_encoding(file.readline)[0]
|
D | trace.py | 273 encoding, _ = tokenize.detect_encoding(fp.readline)
|
/external/python/setuptools/setuptools/_distutils/command/ |
D | build_scripts.py | 82 encoding, lines = tokenize.detect_encoding(f.readline)
|
/external/python/cpython3/Lib/distutils/command/ |
D | build_scripts.py | 82 encoding, lines = tokenize.detect_encoding(f.readline)
|
/external/python/cpython3/Tools/scripts/ |
D | reindent.py | 122 encoding, _ = tokenize.detect_encoding(f.readline)
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_parser.py | 298 encoding = tokenize.detect_encoding(fp.readline)[0]
|
/external/python/cpython3/Lib/test/ |
D | test_tokenize.py | 4 STRING, ENDMARKER, ENCODING, tok_name, detect_encoding,
|
/external/python/cpython2/Lib/lib2to3/pgen2/ |
D | tokenize.py | 253 def detect_encoding(readline): function
|
/external/python/cpython3/Lib/idlelib/ |
D | iomenu.py | 286 enc, _ = tokenize.detect_encoding(io.BytesIO(encoded).readline)
|
/external/python/cpython3/Lib/lib2to3/pgen2/ |
D | tokenize.py | 241 def detect_encoding(readline): function
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_parser.py | 594 encoding = tokenize.detect_encoding(fp.readline)[0]
|
/external/python/cpython2/Lib/lib2to3/ |
D | refactor.py | 333 encoding = tokenize.detect_encoding(f.readline)[0]
|
/external/python/cpython3/Lib/lib2to3/ |
D | refactor.py | 318 encoding = tokenize.detect_encoding(f.readline)[0]
|
/external/python/cpython3/Lib/importlib/ |
D | _bootstrap_external.py | 711 encoding = tokenize.detect_encoding(source_bytes_readline)
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7861 - 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
|