Lines Matching full:errors
97 handling schemes by providing the errors argument. These
114 def encode(self, input, errors='strict'):
119 errors defines the error handling to apply. It defaults to
133 def decode(self, input, errors='strict'):
142 errors defines the error handling to apply. It defaults to
162 def __init__(self, errors='strict'):
167 providing the errors keyword argument. See the module docstring
170 self.errors = errors
202 def __init__(self, errors='strict'):
203 IncrementalEncoder.__init__(self, errors)
206 def _buffer_encode(self, input, errors, final):
214 (result, consumed) = self._buffer_encode(data, self.errors, final)
235 def __init__(self, errors='strict'):
240 providing the errors keyword argument. See the module docstring
243 self.errors = errors
284 def __init__(self, errors='strict'):
285 IncrementalDecoder.__init__(self, errors)
288 def _buffer_decode(self, input, errors, final):
296 (result, consumed) = self._buffer_decode(data, self.errors, final)
322 def __init__(self, stream, errors='strict'):
330 schemes by providing the errors keyword argument. These
345 self.errors = errors
351 data, consumed = self.encode(object, self.errors)
395 def __init__(self, stream, errors='strict'):
403 schemes by providing the errors keyword argument. These
414 self.errors = errors
421 def decode(self, input, errors='strict'):
477 newchars, decodedbytes = self.decode(data, self.errors)
480 newchars, decodedbytes = self.decode(data[:exc.start], self.errors)
597 from decoding errors.
651 def __init__(self, stream, Reader, Writer, errors='strict'):
665 self.reader = Reader(stream, errors)
666 self.writer = Writer(stream, errors)
667 self.errors = errors
747 errors='strict'):
775 self.reader = Reader(stream, errors)
776 self.writer = Writer(stream, errors)
777 self.errors = errors
782 data, bytesencoded = self.encode(data, self.errors)
791 data, bytesencoded = self.encode(data, self.errors)
797 data, bytesencoded = self.encode(data, self.errors)
804 data, bytesencoded = self.encode(data, self.errors)
812 data, bytesdecoded = self.decode(data, self.errors)
818 data, bytesdecoded = self.decode(data, self.errors)
841 def open(filename, mode='rb', encoding=None, errors='strict', buffering=1):
859 errors may be given to define the error handling. It defaults
885 srw = StreamReaderWriter(file, info.streamreader, info.streamwriter, errors)
890 def EncodedFile(file, data_encoding, file_encoding=None, errors='strict'):
905 errors may be given to define the error handling. It defaults
920 file_info.streamreader, file_info.streamwriter, errors)
996 def iterencode(iterator, encoding, errors='strict', **kwargs):
1002 errors and kwargs are passed through to the IncrementalEncoder
1005 errors, **kwargs)
1014 def iterdecode(iterator, encoding, errors='strict', **kwargs):
1020 errors and kwargs are passed through to the IncrementalDecoder
1023 decoder = getincrementaldecoder(encoding)(errors, **kwargs)