MCPcopy
hub / github.com/pandas-dev/pandas / equalize_decl

Function equalize_decl

pandas/tests/io/xml/test_to_xml.py:150–157  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

148
149
150def equalize_decl(doc):
151 # etree and lxml differ on quotes and case in xml declaration
152 if doc is not None:
153 doc = doc.replace(
154 '<?xml version="1.0" encoding="utf-8"?',
155 "<?xml version='1.0' encoding='utf-8'?",
156 )
157 return doc
158
159
160@pytest.fixture(params=["rb", "r"])

Callers 15

test_str_outputFunction · 0.85
test_index_falseFunction · 0.85
test_na_elem_outputFunction · 0.85
test_attrs_cols_prefixFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected