4 webencodings.x_user_defined
5 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 An implementation of the x-user-defined encoding.
9 :copyright: Copyright 2012 by Simon Sapin
10 :license: BSD, see LICENSE for details.
14from __future__
import unicode_literals
23 def encode(self, input, errors='strict'):
26 def decode(self, input, errors='strict'):
31 def encode(self, input, final=False):
36 def decode(self, input, final=False):
51 name=
'x-user-defined',
52 encode=Codec().encode,
53 decode=Codec().decode,
54 incrementalencoder=IncrementalEncoder,
55 incrementaldecoder=IncrementalDecoder,
56 streamreader=StreamReader,
57 streamwriter=StreamWriter,