Lines Matching refs:expat

11 from xml.parsers import expat
12 from xml.parsers.expat import errors
19 self.parser = expat.ParserCreate(namespace_separator='!')
230 parser = expat.ParserCreate(namespace_separator='!')
242 parser = expat.ParserCreate(namespace_separator='!')
253 parser = expat.ParserCreate(namespace_separator='!')
263 parser = expat.ParserCreate()
269 with self.assertRaises(expat.error) as cm:
271 self.assertEqual(expat.ErrorString(cm.exception.code),
272 expat.errors.XML_ERROR_FINISHED)
278 expat.ParserCreate()
279 expat.ParserCreate(namespace_separator=None)
280 expat.ParserCreate(namespace_separator=' ')
284 expat.ParserCreate(namespace_separator=42)
291 expat.ParserCreate(namespace_separator='too long')
306 expat.ParserCreate(namespace_separator='') # too short
312 p = expat.ParserCreate()
337 parser = expat.ParserCreate(namespace_separator='!')
348 self.parser = expat.ParserCreate()
379 parser = expat.ParserCreate()
450 parser = expat.ParserCreate()
493 self.parser = expat.ParserCreate()
518 parser = expat.ParserCreate()
535 parser = expat.ParserCreate()
549 parser = expat.ParserCreate()
573 parser = expat.ParserCreate()
604 parser = expat.ParserCreate()
616 parser = expat.ParserCreate()
632 parser = expat.ParserCreate()
648 parser = expat.ParserCreate()
652 except expat.ExpatError as e:
658 parser = expat.ParserCreate()
660 with self.assertRaisesRegex(expat.ExpatError, err_pattern):
671 parser = expat.ParserCreate()
675 except expat.ExpatError as e:
695 parser = expat.ParserCreate()
697 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)
705 parser = expat.ParserCreate()
707 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)
723 parser = expat.ParserCreate()
725 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)