From dc19a8fa5be68990a8e1f1a24d72a1afaae61dfd Mon Sep 17 00:00:00 2001 From: Ian McCowan Date: Sun, 2 Feb 2014 20:11:59 -0800 Subject: [PATCH] Return an empty string for missing summary lines. Can't compare None to strings in Py3k. --- doc/autobuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/autobuild.py b/doc/autobuild.py index 362816dcd..932877fc0 100644 --- a/doc/autobuild.py +++ b/doc/autobuild.py @@ -160,7 +160,7 @@ template_examples_ref = \ def extract_summary_line(doc): if doc is None: - return + return "" for line in doc.split('\n'): line = line.strip() # don't take empty line