Searched refs:TEXT_ENCODING (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Tools/iobench/ |
D | iobench.py | 15 TEXT_ENCODING = 'utf8' variable 26 return open(fn, mode, encoding=encoding or TEXT_ENCODING) 40 return (("%s-%s-%s.txt" % (name, TEXT_ENCODING, NEWLINES), size) 315 print("Text unit = one character (%s-decoded)" % TEXT_ENCODING) 389 chunk = chunk.encode(TEXT_ENCODING) 398 tail.decode(TEXT_ENCODING) 407 global TEXT_ENCODING, NEWLINES 425 help="encoding for text tests (default: %s)" % TEXT_ENCODING) 452 TEXT_ENCODING = options.encoding
|
/external/python/cpython3/Tools/iobench/ |
D | iobench.py | 14 TEXT_ENCODING = 'utf8' variable 25 return open(fn, mode, encoding=encoding or TEXT_ENCODING) 41 return (("%s-%s-%s.txt" % (name, TEXT_ENCODING, NEWLINES), size) 326 print("Text unit = one character (%s-decoded)" % TEXT_ENCODING) 400 chunk = chunk.encode(TEXT_ENCODING) 409 tail.decode(TEXT_ENCODING) 418 global TEXT_ENCODING, NEWLINES 436 help="encoding for text tests (default: %s)" % TEXT_ENCODING) 466 TEXT_ENCODING = options.encoding
|