/external/fonttools/Tests/ttLib/tables/ |
D | T_S_I__1_test.py | 4 from fontTools.misc.py23 import unichr, tobytes 112 data = tobytes(content) 128 data = tobytes(content) 149 data = tobytes(foo_content + bar_content) 167 data = tobytes(ppgm_content + cvt_content)
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_pickling.py | 31 self.assertEqual(memoryview(src).tobytes(), 32 memoryview(dst).tobytes()) 49 self.assertEqual(memoryview(y).tobytes(), 50 memoryview(x).tobytes())
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_pickling.py | 31 self.assertEqual(memoryview(src).tobytes(), 32 memoryview(dst).tobytes()) 49 self.assertEqual(memoryview(y).tobytes(), 50 memoryview(x).tobytes())
|
/external/fonttools/Lib/fontTools/misc/ |
D | py23.py | 124 def tobytes(s, encoding='ascii', errors='strict'): function 137 def tobytes(self): member in Tag 143 tostr = tobytes 165 def tobytes(self): member in Tag 171 return tobytes(joiner).join(tobytes(item) for item in iterable)
|
D | sstruct.py | 73 value = tobytes(value) 81 data = tobytes(data)
|
D | testTools.py | 34 xml += tobytes(xmlSnippet, 'utf-8') 36 xml += b"".join(tobytes(s, 'utf-8') for s in xmlSnippet)
|
D | textTools.py | 93 data = tobytes(data)
|
/external/python/cpython3/Lib/test/ |
D | test_array.py | 451 self.assertRaises(TypeError, a.tobytes, 42) 454 b.frombytes(a.tobytes()) 455 c = array.array(self.typecode, bytearray(a.tobytes())) 992 expected = m.tobytes() 993 self.assertEqual(a.tobytes(), expected) 994 self.assertEqual(a.tobytes()[0], expected[0]) 999 self.assertEqual(m.tobytes(), expected) 1001 self.assertEqual(m.tobytes(), expected) 1003 self.assertEqual(m.tobytes(), expected) 1005 self.assertEqual(m.tobytes(), expected) [all …]
|
D | test_buffer.py | 658 mem = exporter.tobytes() 729 x = nd.tobytes() 811 rep = result.tolist() if fmt else result.tobytes() 842 self.assertEqual(result.tobytes(), b) 874 self.assertEqual(contig.tobytes(), b) 941 rep = result.tolist() if fmt else result.tobytes() 983 lst = orig_ex.tobytes() # Issue 12834 2094 self.assertEqual(hash(nd), hash(nd.tobytes())) 2119 self.assertEqual(b, nd.tobytes()) 2141 ndbytes = nd.tobytes() [all …]
|
D | test_file.py | 48 self.assertEqual(b'12', a.tobytes()[:n]) 275 line = buf.tobytes()
|
D | test_struct.py | 427 from_buf = writable_buf.tobytes()[:len(test_string)] 432 from_buf = writable_buf.tobytes()[:len(test_string)+10] 455 from_buf = writable_buf.tobytes()[:len(test_string)] 460 from_buf = writable_buf.tobytes()[:len(test_string)+10]
|
/external/fonttools/Tests/misc/ |
D | xmlWriter_test.py | 7 linesep = tobytes(os.linesep) 119 linesep = tobytes(os.linesep) if nls is None else tobytes(nls)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | bitcast_op_test.py | 35 buff_after = memoryview(out).tobytes() 36 buff_before = memoryview(x).tobytes()
|
/external/python/cpython2/Lib/test/ |
D | test_struct.py | 436 def test_pack_into(self, cls=bytearray, tobytes=str): argument 444 from_buf = tobytes(writable_buf)[:len(test_string)] 449 from_buf = tobytes(writable_buf)[:len(test_string)+10] 466 tobytes=array.array.tostring) 471 tobytes=memoryview.tobytes)
|
D | test_buffer.py | 34 self.assertEqual(m.tobytes(), s)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | T_S_I__1.py | 94 text = tobytes(self.glyphPrograms[name], encoding="utf-8") 110 text = tobytes(self.extraPrograms[name], encoding="utf-8")
|
D | asciiTable.py | 22 self.data = tobytes("\n".join(lines[1:-1]))
|
D | T_S_I_V_.py | 21 self.data = tobytes("\r".join(lines[1:-1]))
|
D | _l_t_a_g.py | 46 dataList.append(tobytes(stringPool))
|
D | S_I_N_G_.py | 68 data = data + tobytes(self.baseGlyphName)
|
D | _n_a_m_e.py | 292 _ = tobytes(name, encoding, errors="strict") 393 return tobytes(self.string, encoding=self.getEncoding(), errors=errors)
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | plistlib.py | 40 return loads(tobytes(data, encoding="utf-8"), use_builtin_types=False)
|
/external/fonttools/Tests/svgLib/path/ |
D | path_test.py | 44 tmp.write(tobytes(SVG_DATA))
|
/external/python/cpython3/Lib/ |
D | base64.py | 43 return memoryview(s).tobytes() 154 s = memoryview(s).tobytes() 282 b = memoryview(b).tobytes()
|
/external/python/cpython3/Doc/library/ |
D | array.rst | 220 .. method:: array.tobytes() 227 :meth:`tostring` is renamed to :meth:`tobytes` for clarity. 242 Deprecated alias for :meth:`tobytes`. 248 otherwise a :exc:`ValueError` is raised. Use ``array.tobytes().decode(enc)`` to
|