0003-utils-xml-mute-xmlschema-logs-56881.patch
passerelle/utils/xml.py | ||
---|---|---|
18 | 18 |
from collections import OrderedDict |
19 | 19 | |
20 | 20 |
import jsonschema |
21 |
import xmlschema |
|
21 | ||
22 |
from .logging import ignore_loggers |
|
23 | ||
24 |
with ignore_loggers('xmlschema'): |
|
25 |
import xmlschema |
|
22 | 26 | |
23 | 27 | |
24 | 28 |
def text_content(node): |
... | ... | |
136 | 140 | |
137 | 141 |
def __init__(self, xml_schema, root_element): |
138 | 142 |
if not isinstance(xml_schema, xmlschema.XMLSchema): |
139 |
xml_schema = xmlschema.XMLSchema(xml_schema, converter=TransformConverter(transformer=self)) |
|
143 |
with ignore_loggers('xmlschema'): |
|
144 |
xml_schema = xmlschema.XMLSchema(xml_schema, converter=TransformConverter(transformer=self)) |
|
140 | 145 |
self.xml_schema = xml_schema |
141 | 146 |
self.root_element = root_element |
142 | 147 |
self.json_schema = { |
143 |
- |