Lines Matching defs:errors
43 encoding=None, errors=None,
109 errors is an optional string that specifies how encoding errors are to
113 errors. (Note that ignoring encoding errors can lead to data loss.)
161 if errors is not None and not isinstance(errors, basestring):
162 raise TypeError("invalid errors: %r" % errors)
184 if binary and errors is not None:
185 raise ValueError("binary mode doesn't take an errors argument")
223 text = TextIOWrapper(buffer, encoding, errors, newline, line_buffering)
234 "errors=None, newline=None, closefd=True)\n\n" +
1346 def errors(self):
1362 def __init__(self, decoder, translate, errors='strict'):
1363 codecs.IncrementalDecoder.__init__(self, errors=errors)
1447 errors determines the strictness of encoding and decoding (see the
1466 def __init__(self, buffer, encoding=None, errors=None, newline=None,
1484 if errors is None:
1485 errors = "strict"
1487 if not isinstance(errors, basestring):
1488 raise ValueError("invalid errors: %r" % errors)
1493 self._errors = errors
1538 def errors(self):
1975 errors="strict",
1997 def errors(self):