diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-19 20:12:18 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-19 20:12:18 +0000 |
| commit | df5644cde6ba9b70870ddb01caaee423e00e49ad (patch) | |
| tree | 393d0be67c91b2ab62f02fd660952a1258ef65c9 /mammoth/docx/relationships_xml.py | |
| parent | dcca2c6ffe71e399caeeac6c2d44070c097a9cc5 (diff) | |
Read document XML path from _rels/.rels
Diffstat (limited to 'mammoth/docx/relationships_xml.py')
| -rw-r--r-- | mammoth/docx/relationships_xml.py | 3 |
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"]) |
