Lines Matching refs:errors
130 def decode_generalized_number(extended, extpos, bias, errors):
139 if errors == "strict":
147 elif errors == "strict":
160 def insertion_sort(base, extended, errors):
168 bias, errors)
176 if errors == "strict":
185 def punycode_decode(text, errors):
193 base = unicode(base, "ascii", errors)
195 return insertion_sort(base, extended, errors)
201 def encode(self,input,errors='strict'):
205 def decode(self,input,errors='strict'):
206 if errors not in ('strict', 'replace', 'ignore'):
207 raise UnicodeError, "Unsupported error handling "+errors
208 res = punycode_decode(input, errors)
217 if self.errors not in ('strict', 'replace', 'ignore'):
218 raise UnicodeError, "Unsupported error handling "+self.errors
219 return punycode_decode(input, self.errors)