diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-08 11:08:45 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-08 11:08:45 +0100 |
| commit | f9bb8d351aba420eb43db5a29b4ad97606998596 (patch) | |
| tree | 282c34becf2b191265f1666c7486c9aaec3374ec /mammoth/docx | |
| parent | 081c141fa57175d7adb8be5de908084bee151c00 (diff) | |
Run pyflakes during test and fix errors
Diffstat (limited to 'mammoth/docx')
| -rw-r--r-- | mammoth/docx/__init__.py | 1 | ||||
| -rw-r--r-- | mammoth/docx/document_xml.py | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py index c0a7ea3..df3071d 100644 --- a/mammoth/docx/__init__.py +++ b/mammoth/docx/__init__.py @@ -1,7 +1,6 @@ import zipfile import contextlib -from ..results import Result from .xmlparser import parse_xml from .document_xml import read_document_xml_element from .content_types_xml import read_content_types_xml_element diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 83ddcdd..75d21fb 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -129,13 +129,13 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file): @handler("w:tr") - def table(element): + def table_row(element): return _read_xml_elements(element.children) \ .map(documents.table_row) @handler("w:tc") - def table(element): + def table_cell(element): return _read_xml_elements(element.children) \ .map(documents.table_cell) |
