Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if

passed None.
This commit is contained in:
Greg Ward 2000-06-08 14:21:23 +00:00
parent 14c8d05a7a
commit d2412a35b1
1 changed files with 2 additions and 0 deletions

View File

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