aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-05-20 20:49:13 +0100
committerMichael Williamson <mike@zwobble.org>2023-05-20 20:49:13 +0100
commit34499b280033bf1c1ad147fa2af3ad9edebd42ee (patch)
tree7c2da2bdea1fe3e1f3e1578beb4d202ca5d69b7b /mammoth
parent3c28baca5a85d95744d7c325a07e2837dea51ef2 (diff)
Fix Python 2.7 support
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/docx/body_xml.py2
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),