Project

General

Profile

« Previous | Next » 

Revision 1709

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

View differences:

lib/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))
bin/digir_client
16 16
import profiling
17 17
import streams
18 18
import util
19
import xml_dom
19
import xml_parse
20 20
import xpath
21 21

  
22 22
# Config
......
137 137
        # Parse diagnostics
138 138
        diags_str = stream.matches[0]
139 139
        debug_log(diags_str, 'diagnostics')
140
        diags = xml_dom.parse_str(diags_str)
140
        diags = xml_parse.parse_str(diags_str)
141 141
        def get_diag(name):
142 142
            return xpath.get_value(diags, 'diagnostic[@code='+name+']')
143 143
        

Also available in: Unified diff