We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d472699 commit 9127bc7Copy full SHA for 9127bc7
barcode/writer.py
@@ -2,7 +2,7 @@
2
3
import gzip
4
import os
5
-import xml.dom
+import xml.dom.minidom
6
from typing import TYPE_CHECKING
7
from typing import BinaryIO
8
from typing import Callable
@@ -58,7 +58,7 @@ def _set_attributes(element, **attributes):
58
59
60
def create_svg_object(with_doctype=False):
61
- imp = xml.dom.getDOMImplementation()
+ imp = xml.dom.minidom.getDOMImplementation()
62
doctype = imp.createDocumentType(
63
"svg",
64
"-//W3C//DTD SVG 1.1//EN",
0 commit comments