From b5606471d456a4d08ac18a97b58e353938ce39f9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jan 2015 15:26:01 +0000 Subject: Allow empty HTML paths --- mammoth/html_paths.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mammoth/html_paths.py') diff --git a/mammoth/html_paths.py b/mammoth/html_paths.py index 887288b..1428015 100644 --- a/mammoth/html_paths.py +++ b/mammoth/html_paths.py @@ -15,3 +15,5 @@ def element(names, class_names=None, fresh=None): HtmlPath = collections.namedtuple("HtmlPath", ["elements"]) HtmlPathElement = collections.namedtuple("HtmlPathElement", ["names", "class_names", "fresh"]) + +empty = path([]) -- cgit v1.2.3