Return an empty string for missing summary lines. Can't compare None to strings in Py3k.

This commit is contained in:
Ian McCowan 2014-02-02 20:11:59 -08:00
parent 526e1faee3
commit dc19a8fa5b
1 changed files with 1 additions and 1 deletions

View File

@ -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