summaryrefslogtreecommitdiff
path: root/yarnlib
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-06-24 07:35:14 +0100
committerLars Wirzenius <liw@liw.fi>2013-06-24 07:35:14 +0100
commit8b957545560b52368c8ed6dc09b83c73e292e58f (patch)
treec088ec86624c4cd294b16b57007d2874021d926e /yarnlib
parent934760b34e74bad1d630cd3b6ab3722c4207248a (diff)
downloadcmdtest-8b957545560b52368c8ed6dc09b83c73e292e58f.tar.gz
Fix returning of current file's code blocks
Forgot to return the parse_string value, resulting in the parse_file caller getting None, resulting in a "no code blocks" warning for every file. Reported-by: Daniel Silverstone
Diffstat (limited to 'yarnlib')
-rw-r--r--yarnlib/mdparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarnlib/mdparser.py b/yarnlib/mdparser.py
index 7884630..f787293 100644
--- a/yarnlib/mdparser.py
+++ b/yarnlib/mdparser.py
@@ -72,5 +72,5 @@ class MarkdownParser(object):
def parse_file(self, filename): # pragma: no cover
with open(filename) as f:
- self.parse_string(f.read())
+ return self.parse_string(f.read())