From f781e9379efe10c278154f82d85bd3cbf0ffed0d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 28 Jul 2015 14:56:01 -0700 Subject: Fixed dumb mistake in makespec.py. --- tools/makespec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/makespec.py b/tools/makespec.py index 7ae2a0c..38c7d3b 100755 --- a/tools/makespec.py +++ b/tools/makespec.py @@ -38,8 +38,8 @@ def parseYaml(yaml): def pipe_through_prog(prog, text): p1 = Popen(prog.split(), stdout=PIPE, stdin=PIPE, stderr=PIPE) - [result, err] = p1.communicate(input=text.encode('utf-8')) - return [p1.returncode, result.decode('utf-8'), err] + [result, err_out] = p1.communicate(input=text.encode('utf-8')) + return [p1.returncode, result.decode('utf-8'), err_out] def replaceAnchor(match): refs.append("[{0}]: #{1}".format(match.group(1), match.group(2))) @@ -138,7 +138,7 @@ elif specformat == "html": section['contents'] + '](#' + section['ident'] + ')') toc = '
\n\n' + '\n'.join(toclines) + '\n\n
\n\n' prog = "cmark --smart" - [retcode, result, err] = pipe_through_prog(prog, toc + mdtext) + [retcode, result, err_out] = pipe_through_prog(prog, toc + mdtext) if retcode == 0: result = re.sub(r'␣', ' ', result) result = re.sub(r'<\/a> ', @@ -167,7 +167,7 @@ elif specformat == "html": else: err("Error converting markdown version of spec:\n") - err(err) + err(err_out) exit(1) exit(0) -- cgit v1.2.3