aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-12 22:29:02 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-12 22:29:02 +0000
commit1fd31a5fa207c40aaaae74f62cc3b491f15dcd41 (patch)
tree1fe6cc83eb6ca92ccfbe1bd1c2b9941531e03ac7 /mammoth
parent2791c74b8c1afc1014e380111b7e7f4d4ea09539 (diff)
Move html path reading into separate module
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/style_reader/__init__.py1
-rw-r--r--mammoth/style_reader/html_path_reader.py (renamed from mammoth/style_reader.py)3
2 files changed, 3 insertions, 1 deletions
diff --git a/mammoth/style_reader/__init__.py b/mammoth/style_reader/__init__.py
new file mode 100644
index 0000000..892326e
--- /dev/null
+++ b/mammoth/style_reader/__init__.py
@@ -0,0 +1 @@
+from .html_path_reader import read_html_path
diff --git a/mammoth/style_reader.py b/mammoth/style_reader/html_path_reader.py
index 2cdc261..0de6e8c 100644
--- a/mammoth/style_reader.py
+++ b/mammoth/style_reader/html_path_reader.py
@@ -1,6 +1,6 @@
from parsimonious.grammar import Grammar
-from . import html_paths
+from .. import html_paths
def read_html_path(string):
@@ -76,3 +76,4 @@ identifier = ~"[A-Z0-9]*"i
whitespace = ~"\s"*
""")
+