aboutsummaryrefslogtreecommitdiff
path: root/mammoth/html_paths.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-25 15:26:01 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-25 15:26:01 +0000
commitb5606471d456a4d08ac18a97b58e353938ce39f9 (patch)
tree289c3671a5ec3126f0f3052d1f2725f909e34e69 /mammoth/html_paths.py
parentb09f43356b49922fc7c03a998f696af69a7ffb26 (diff)
Allow empty HTML paths
Diffstat (limited to 'mammoth/html_paths.py')
-rw-r--r--mammoth/html_paths.py2
1 files changed, 2 insertions, 0 deletions
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([])