Searched refs:strtobytes (Results 1 – 1 of 1) sorted by relevance
237 def strtobytes(x): return bytes(x, 'iso8859-1') function240 strtobytes = str variable966 def write_chunk(outfile, tag, data=strtobytes('')):974 tag = strtobytes(tag)1412 verify = zlib.crc32(strtobytes(type))2501 return strtobytes(''.join(chr(x) for x in s))2654 s.write(strtobytes('P5 2 2 3\n'))2655 s.write(strtobytes('\x00\x01\x02\x03'))2669 s.write(strtobytes('P7\nWIDTH 3\nHEIGHT 1\nDEPTH 4\nMAXVAL 255\n'2689 self.assertEqual(sbit, strtobytes('\x04\x04'))[all …]