diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-05-20 20:49:13 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-05-20 20:49:13 +0100 |
| commit | 34499b280033bf1c1ad147fa2af3ad9edebd42ee (patch) | |
| tree | 7c2da2bdea1fe3e1f3e1578beb4d202ca5d69b7b | |
| parent | 3c28baca5a85d95744d7c325a07e2837dea51ef2 (diff) | |
Fix Python 2.7 support
| -rw-r--r-- | mammoth/docx/body_xml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py index 09ad744..f880c72 100644 --- a/mammoth/docx/body_xml.py +++ b/mammoth/docx/body_xml.py @@ -154,7 +154,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f children_xml = element.children if deleted_paragraph_contents: children_xml = deleted_paragraph_contents + children_xml - deleted_paragraph_contents.clear() + del deleted_paragraph_contents[:] return _ReadResult.map_results( _read_paragraph_style(properties), |
