aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/relationships_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-01-19 20:12:18 +0000
committerMichael Williamson <mike@zwobble.org>2018-01-19 20:12:18 +0000
commitdf5644cde6ba9b70870ddb01caaee423e00e49ad (patch)
tree393d0be67c91b2ab62f02fd660952a1258ef65c9 /mammoth/docx/relationships_xml.py
parentdcca2c6ffe71e399caeeac6c2d44070c097a9cc5 (diff)
Read document XML path from _rels/.rels
Diffstat (limited to 'mammoth/docx/relationships_xml.py')
-rw-r--r--mammoth/docx/relationships_xml.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mammoth/docx/relationships_xml.py b/mammoth/docx/relationships_xml.py
index c30c428..555ba2d 100644
--- a/mammoth/docx/relationships_xml.py
+++ b/mammoth/docx/relationships_xml.py
@@ -18,6 +18,9 @@ class Relationships(object):
return self._targets_by_type[relationship_type]
+Relationships.EMPTY = Relationships([])
+
+
Relationship = collections.namedtuple("Relationship", ["relationship_id", "target", "type"])