Searched refs:codecname (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_charmapcodec.py | 26 codecname = 'testcodec' variable 30 self.assertEqual(unicode('abc', codecname), u'abc') 31 self.assertEqual(unicode('xdef', codecname), u'abcdef') 32 self.assertEqual(unicode('defx', codecname), u'defabc') 33 self.assertEqual(unicode('dxf', codecname), u'dabcf') 34 self.assertEqual(unicode('dxfx', codecname), u'dabcfabc') 37 self.assertEqual(u'abc'.encode(codecname), 'abc') 38 self.assertEqual(u'xdef'.encode(codecname), 'abcdef') 39 self.assertEqual(u'defx'.encode(codecname), 'defabc') 40 self.assertEqual(u'dxf'.encode(codecname), 'dabcf') [all …]
|
/external/python/cpython2/Lib/email/ |
D | charset.py | 145 def add_codec(charset, codecname): argument 152 CODEC_MAP[charset] = codecname
|
/external/python/cpython2/Doc/library/ |
D | email.charset.rst | 246 .. function:: add_codec(charset, codecname) 250 *charset* is the canonical name of a character set. *codecname* is the name of a
|