From: Greg Ward Date: Thu, 8 Jun 2000 14:21:23 +0000 (+0000) Subject: Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if X-Git-Tag: v2.0b1~1536 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2412a35b13b18b5de8c522aeeee7cba6d740ae4;p=python Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if passed None. --- diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 0959ad8f90..7f58a1da6b 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -436,6 +436,8 @@ class bdist_rpm (Command): def _format_changelog(self, changelog): """Format the changelog correctly and convert it to a list of strings """ + if not changelog: + return changelog new_changelog = [] for line in string.split(string.strip(changelog), '\n'): line = string.strip(line)