Lines Matching refs:errors
119 handling schemes by providing the errors argument. These
138 def encode(self, input, errors='strict'):
143 errors defines the error handling to apply. It defaults to
157 def decode(self, input, errors='strict'):
166 errors defines the error handling to apply. It defaults to
186 def __init__(self, errors='strict'):
191 providing the errors keyword argument. See the module docstring
194 self.errors = errors
226 def __init__(self, errors='strict'):
227 IncrementalEncoder.__init__(self, errors)
231 def _buffer_encode(self, input, errors, final):
239 (result, consumed) = self._buffer_encode(data, self.errors, final)
260 def __init__(self, errors='strict'):
265 providing the errors keyword argument. See the module docstring
268 self.errors = errors
309 def __init__(self, errors='strict'):
310 IncrementalDecoder.__init__(self, errors)
314 def _buffer_decode(self, input, errors, final):
322 (result, consumed) = self._buffer_decode(data, self.errors, final)
348 def __init__(self, stream, errors='strict'):
355 schemes by providing the errors keyword argument. These
371 self.errors = errors
377 data, consumed = self.encode(object, self.errors)
423 def __init__(self, stream, errors='strict'):
430 schemes by providing the errors keyword argument. These
442 self.errors = errors
448 def decode(self, input, errors='strict'):
504 newchars, decodedbytes = self.decode(data, self.errors)
508 self.decode(data[:exc.start], self.errors)
627 from decoding errors.
681 def __init__(self, stream, Reader, Writer, errors='strict'):
695 self.reader = Reader(stream, errors)
696 self.writer = Writer(stream, errors)
697 self.errors = errors
776 errors='strict'):
799 self.reader = Reader(stream, errors)
800 self.writer = Writer(stream, errors)
801 self.errors = errors
806 data, bytesencoded = self.encode(data, self.errors)
815 data, bytesencoded = self.encode(data, self.errors)
821 data, bytesencoded = self.encode(data, self.errors)
828 data, bytesencoded = self.encode(data, self.errors)
836 data, bytesdecoded = self.decode(data, self.errors)
842 data, bytesdecoded = self.decode(data, self.errors)
871 def open(filename, mode='r', encoding=None, errors='strict', buffering=-1):
888 errors may be given to define the error handling. It defaults
912 srw = StreamReaderWriter(file, info.streamreader, info.streamwriter, errors)
920 def EncodedFile(file, data_encoding, file_encoding=None, errors='strict'):
935 errors may be given to define the error handling. It defaults
950 file_info.streamreader, file_info.streamwriter, errors)
1026 def iterencode(iterator, encoding, errors='strict', **kwargs):
1032 errors and kwargs are passed through to the IncrementalEncoder
1035 encoder = getincrementalencoder(encoding)(errors, **kwargs)
1044 def iterdecode(iterator, encoding, errors='strict', **kwargs):
1050 errors and kwargs are passed through to the IncrementalDecoder
1053 decoder = getincrementaldecoder(encoding)(errors, **kwargs)