Skip to content

Commit

Permalink
Added missing newlines to release script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed Jun 20, 2012
1 parent 0f3ee7d commit e42a059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/make-release.py
Expand Up @@ -21,7 +21,6 @@


def add_new_changelog_section(current_version, next_version): def add_new_changelog_section(current_version, next_version):
version_string = 'Version {}'.format(current_version) version_string = 'Version {}'.format(current_version)
LF = '\n'
with open('CHANGES') as f: with open('CHANGES') as f:
all_lines = f.readlines() all_lines = f.readlines()
stripped_lines = [l.strip() for l in all_lines] stripped_lines = [l.strip() for l in all_lines]
Expand All @@ -32,7 +31,8 @@ def add_new_changelog_section(current_version, next_version):
fail('Could not find "{}" in {}.'.format(version_string, 'CHANGES')) fail('Could not find "{}" in {}.'.format(version_string, 'CHANGES'))
new_header = 'Version {}'.format(next_version) new_header = 'Version {}'.format(next_version)
horizontal_rule = '-' * len(new_header) horizontal_rule = '-' * len(new_header)
new_lines = [new_header, horizontal_rule, LF, 'Not yet released.', LF] new_lines = [new_header + '\n', horizontal_rule + '\n', '\n',
'Not yet released.' + '\n', '\n']
# insert the new lines into the list of all lines read from CHANGES # insert the new lines into the list of all lines read from CHANGES
all_lines[line_num:line_num] = new_lines all_lines[line_num:line_num] = new_lines
# write the changes back to...CHANGES # write the changes back to...CHANGES
Expand Down

0 comments on commit e42a059

Please sign in to comment.