mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if
passed None.
This commit is contained in:
parent
14c8d05a7a
commit
d2412a35b1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user