Skip to content

Commit 9127bc7

Browse files
committed
Fix SVG DOM implementation to minidom
It's part of the standard library, and we're not aiming for performance
1 parent d472699 commit 9127bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

barcode/writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import gzip
44
import os
5-
import xml.dom
5+
import xml.dom.minidom
66
from typing import TYPE_CHECKING
77
from typing import BinaryIO
88
from typing import Callable
@@ -58,7 +58,7 @@ def _set_attributes(element, **attributes):
5858

5959

6060
def create_svg_object(with_doctype=False):
61-
imp = xml.dom.getDOMImplementation()
61+
imp = xml.dom.minidom.getDOMImplementation()
6262
doctype = imp.createDocumentType(
6363
"svg",
6464
"-//W3C//DTD SVG 1.1//EN",

0 commit comments

Comments
 (0)