From d2412a35b13b18b5de8c522aeeee7cba6d740ae4 Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Thu, 8 Jun 2000 14:21:23 +0000 Subject: [PATCH] Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if passed None. --- Lib/distutils/command/bdist_rpm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 0959ad8f90a..7f58a1da6b5 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)