summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-08 14:21:23 (GMT)
committerGreg Ward <gward@python.net>2000-06-08 14:21:23 (GMT)
commitd2412a35b13b18b5de8c522aeeee7cba6d740ae4 (patch)
tree0135ea5be295aba6f995a71775d455d74361f3ef
parent14c8d05a7a72b814431b193aabf246760753d6ac (diff)
downloadcpython-d2412a35b13b18b5de8c522aeeee7cba6d740ae4.zip
cpython-d2412a35b13b18b5de8c522aeeee7cba6d740ae4.tar.gz
cpython-d2412a35b13b18b5de8c522aeeee7cba6d740ae4.tar.bz2
Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if
passed None.
-rw-r--r--Lib/distutils/command/bdist_rpm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py
index 0959ad8..7f58a1d 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)