Project

General

Profile

« Previous | Next » 

Revision 1709

Moved parse_str() from xml_dom.py to xml_parse.py

View differences:

xml_dom.py
203 203
toprettyxml_config = prettyxml_config.copy()
204 204
util.rename_key(toprettyxml_config, 'addindent', 'indent')
205 205

  
206
##### Parsing XML
207

  
208
def parse_str(str_): return minidom.parseString(str_).documentElement
209

  
210 206
##### minidom modifications
211 207

  
212 208
minidom._write_data = lambda writer, data: writer.write(escape(data))

Also available in: Unified diff