diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-12 21:57:49 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-12 21:57:49 +0000 |
| commit | d745ac4b6d65e6729b3d70ddaa23a95bb59fbd39 (patch) | |
| tree | 4a8891a371ca84f5cbb657f3382284992df86b6c /mammoth/html_paths.py | |
| parent | e2a87dbda6d32200b5fa68ba2f5e48aa526499f2 (diff) | |
Support choice of element
Diffstat (limited to 'mammoth/html_paths.py')
| -rw-r--r-- | mammoth/html_paths.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mammoth/html_paths.py b/mammoth/html_paths.py index bc4eba1..cb53968 100644 --- a/mammoth/html_paths.py +++ b/mammoth/html_paths.py @@ -5,9 +5,9 @@ def path(elements): return HtmlPath(elements) -def element(name): - return HtmlPathElement(name) +def element(names): + return HtmlPathElement(names) HtmlPath = collections.namedtuple("HtmlPath", ["elements"]) -HtmlPathElement = collections.namedtuple("HtmlPathElement", ["name"]) +HtmlPathElement = collections.namedtuple("HtmlPathElement", ["names"]) |
