File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1212
1313from . import oxml_parser
1414from .exceptions import ValidationError
15- from .ns import NamespacePrefixedTag , nsmap , qn
15+ from .ns import NamespacePrefixedTag , qn
1616
1717
1818# ===========================================================================
@@ -44,10 +44,6 @@ def serialize_for_reading(element):
4444 return XmlString (xml )
4545
4646
47- def _SubElement (parent , tag ):
48- return etree .SubElement (parent , qn (tag ), nsmap = nsmap )
49-
50-
5147class XmlString (str ):
5248 """
5349 Provides string comparison override suitable for serialized XML that is
Original file line number Diff line number Diff line change 99import pytest
1010
1111from docx .enum .shape import WD_INLINE_SHAPE
12- from docx .oxml .shared import nsmap
12+ from docx .oxml .ns import nsmap
1313from docx .parts .image import ImagePart
1414from docx .shape import InlineShape
1515from docx .shared import Length
You can’t perform that action at this time.
0 commit comments