Lines Matching refs:errors
44 encoding=None, errors=None,
110 errors is an optional string that specifies how encoding errors are to
114 errors. (Note that ignoring encoding errors can lead to data loss.)
162 if errors is not None and not isinstance(errors, basestring):
163 raise TypeError("invalid errors: %r" % errors)
185 if binary and errors is not None:
186 raise ValueError("binary mode doesn't take an errors argument")
224 text = TextIOWrapper(buffer, encoding, errors, newline, line_buffering)
235 "errors=None, newline=None, closefd=True)\n\n" +
1353 def errors(self):
1369 def __init__(self, decoder, translate, errors='strict'):
1370 codecs.IncrementalDecoder.__init__(self, errors=errors)
1454 errors determines the strictness of encoding and decoding (see the
1473 def __init__(self, buffer, encoding=None, errors=None, newline=None,
1491 if errors is None:
1492 errors = "strict"
1494 if not isinstance(errors, basestring):
1495 raise ValueError("invalid errors: %r" % errors)
1500 self._errors = errors
1545 def errors(self):
1986 errors="strict",
2008 def errors(self):