Lines Matching refs:register_error
98 codecs.register_error(
126 codecs.register_error(
181 codecs.register_error("test.relaxedutf8", relaxedutf8)
243 codecs.register_error("test.hui", handler_unicodeinternal)
261 codecs.register_error("test.handler1", handler1)
269 codecs.register_error("test.handler2", handler2)
314 codecs.register_error("test." + err, codecs.lookup_error(err))
785 codecs.register_error("test.badhandler", lambda x: res)
831 codecs.register_error("test.unencreplhandler", unencrepl)
844 self.assertRaises(TypeError, codecs.register_error, 42)
845 self.assertRaises(TypeError, codecs.register_error, "test.dummy", 42)
864 codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)
877 codecs.register_error("test.baddecodereturn1", baddecodereturn1)
887 codecs.register_error("test.baddecodereturn2", baddecodereturn2)
891 codecs.register_error("test.posreturn", handler.handle)
936 codecs.register_error("test.badencodereturn1", badencodereturn1)
941 codecs.register_error("test.badencodereturn2", badencodereturn2)
945 codecs.register_error("test.posreturn", handler.handle)
1025 codecs.register_error("test.replacing", replacing)
1039 codecs.register_error("test.mutating", mutating)
1057 codecs.register_error(
1087 codecs.register_error("test.replace_with_long", replace_with_long)