From 8b957545560b52368c8ed6dc09b83c73e292e58f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 24 Jun 2013 07:35:14 +0100 Subject: 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 --- yarnlib/mdparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yarnlib/mdparser.py') 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()) -- cgit v1.2.1