]> granicus.if.org Git - python/commitdiff
Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if
authorGreg Ward <gward@python.net>
Thu, 8 Jun 2000 14:21:23 +0000 (14:21 +0000)
committerGreg Ward <gward@python.net>
Thu, 8 Jun 2000 14:21:23 +0000 (14:21 +0000)
passed None.

Lib/distutils/command/bdist_rpm.py

index 0959ad8f90aa566cfa15cfb317027f645b0f6ec9..7f58a1da6b51b476e6762e4a3a279359126c0e19 100644 (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)