Lines Matching refs:expat
7 from xml.parsers import expat
15 self.parser = expat.ParserCreate(namespace_separator='!')
151 parser = expat.ParserCreate(namespace_separator='!')
180 parser = expat.ParserCreate(namespace_separator='!')
209 parser = expat.ParserCreate(namespace_separator='!')
240 parser = expat.ParserCreate()
247 parser = expat.ParserCreate()
253 with self.assertRaises(expat.error) as cm:
255 self.assertEqual(expat.ErrorString(cm.exception.code),
256 expat.errors.XML_ERROR_FINISHED)
262 expat.ParserCreate()
263 expat.ParserCreate(namespace_separator=None)
264 expat.ParserCreate(namespace_separator=' ')
268 expat.ParserCreate(namespace_separator=42)
275 expat.ParserCreate(namespace_separator='too long')
290 expat.ParserCreate(namespace_separator='') # too short
296 p = expat.ParserCreate()
313 self.parser = expat.ParserCreate()
344 parser = expat.ParserCreate()
411 parser = expat.ParserCreate()
443 self.parser = expat.ParserCreate()
468 parser = expat.ParserCreate()
485 parser = expat.ParserCreate()
499 parser = expat.ParserCreate()
523 parser = expat.ParserCreate()
559 parser = expat.ParserCreate()
571 parser = expat.ParserCreate()
587 parser = expat.ParserCreate()
603 parser = expat.ParserCreate()
607 except expat.ExpatError as e:
612 parser = expat.ParserCreate()
614 with self.assertRaisesRegexp(expat.ExpatError, err_pattern):
632 parser = expat.ParserCreate()
634 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)
642 parser = expat.ParserCreate()
644 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)
660 parser = expat.ParserCreate()
662 parser.SetParamEntityParsing(expat.XML_PARAM_ENTITY_PARSING_ALWAYS)