Skip to content

Commit

Permalink
Merge pull request #45 from jaraco/issue-44
Browse files Browse the repository at this point in the history
Save the files in binary mode to avoid mutating newlines. Fixes #44
  • Loading branch information
peritus committed Apr 21, 2014
2 parents 541a728 + 6a249c1 commit 3a96ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumpversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ def main(original_args=None):
))))

if not args.dry_run:
with io.open(path, 'wt', encoding='utf-8') as f:
f.write(after)
with io.open(path, 'wb') as f:
f.write(after.encode('utf-8'))

commit_files = files

Expand Down

0 comments on commit 3a96ba8

Please sign in to comment.