(doc)
| 148 | |
| 149 | |
| 150 | def 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"]) |
no test coverage detected