Lines Matching full:mapping
1 """ Generic Python Character Mapping Codec.
25 def __init__(self, errors='strict', mapping=None):
27 self.mapping = mapping
30 return codecs.charmap_encode(input, self.errors, self.mapping)[0]
33 def __init__(self, errors='strict', mapping=None):
35 self.mapping = mapping
38 return codecs.charmap_decode(input, self.errors, self.mapping)[0]
42 def __init__(self,stream,errors='strict',mapping=None):
44 self.mapping = mapping
47 return Codec.encode(input,errors,self.mapping)
51 def __init__(self,stream,errors='strict',mapping=None):
53 self.mapping = mapping
56 return Codec.decode(input,errors,self.mapping)