aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-07-08 11:03:48 +0100
committerMichael Williamson <mike@zwobble.org>2014-07-08 11:03:48 +0100
commit081c141fa57175d7adb8be5de908084bee151c00 (patch)
tree09068a51a1f0a8bdc80a1c9453fe454948817769 /mammoth
parent5a484ab1f55d36977e8ed15aefef3daff36d1fb2 (diff)
Rename function to make visibility clearer
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/__init__.py b/mammoth/__init__.py
index 0b524b1..4a3643c 100644
--- a/mammoth/__init__.py
+++ b/mammoth/__init__.py
@@ -16,14 +16,14 @@ def convert_to_html(fileobj, transform_document=None, **kwargs):
def extract_raw_text(fileobj):
- return docx.read(fileobj).map(extract_raw_text_from_element)
+ return docx.read(fileobj).map(_extract_raw_text_from_element)
-def extract_raw_text_from_element(element):
+def _extract_raw_text_from_element(element):
if isinstance(element, documents.Text):
return element.value
else:
- text = "".join(map(extract_raw_text_from_element, element.children))
+ text = "".join(map(_extract_raw_text_from_element, element.children))
if isinstance(element, documents.Paragraph):
return text + "\n\n"
else: