aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-01-23 22:20:03 +0000
committerMichael Williamson <mike@zwobble.org>2018-01-23 22:20:03 +0000
commitd4acfff9f5f17630a153f12276fa8a2016052c8b (patch)
tree8da285712ba79a889fdfd33217ea2b60f02bda88 /mammoth/docx
parent0eeab964d0373ecdbdd14b5c96b0ab6faaa18cad (diff)
Remove unused arguments
Diffstat (limited to 'mammoth/docx')
-rw-r--r--mammoth/docx/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py
index 9d0cdc2..a71ca0c 100644
--- a/mammoth/docx/__init__.py
+++ b/mammoth/docx/__init__.py
@@ -22,14 +22,14 @@ def read(fileobj):
read_part_with_body = _part_with_body_reader(getattr(fileobj, "name", None), zip_file)
return results.combine([
- _read_notes(zip_file, read_part_with_body),
- _read_comments(zip_file, read_part_with_body),
+ _read_notes(read_part_with_body),
+ _read_comments(read_part_with_body),
]).bind(lambda referents:
_read_document(zip_file, read_part_with_body, notes=referents[0], comments=referents[1])
)
-def _read_notes(zip_file, read_part_with_body):
+def _read_notes(read_part_with_body):
footnotes = read_part_with_body(
"word/footnotes.xml",
lambda root, body_reader: read_footnotes_xml_element(root, body_reader=body_reader),
@@ -44,7 +44,7 @@ def _read_notes(zip_file, read_part_with_body):
return results.combine([footnotes, endnotes]).map(lists.flatten)
-def _read_comments(zip_file, read_part_with_body):
+def _read_comments(read_part_with_body):
return read_part_with_body(
"word/comments.xml",
lambda root, body_reader: read_comments_xml_element(root, body_reader=body_reader),