Skip to content

Commit

Permalink
Upgrade click for click.open_file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Nov 8, 2014
1 parent 41b9708 commit 71d1fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changes/changelog.py
Expand Up @@ -13,7 +13,7 @@
def write_new_changelog(repo_url, filename, content_lines, dry_run=True):
heading_and_newline = '# [Changelog](%s/releases)\n' % repo_url

with open(filename, 'r+') as f:
with click.open_file(filename, 'r+') as f:
existing = f.readlines()

output = existing[2:]
Expand All @@ -27,7 +27,7 @@ def write_new_changelog(repo_url, filename, content_lines, dry_run=True):
output = ''.join(output)

if not dry_run:
with open(filename, 'w+') as f:
with click.open_file(filename, 'w+') as f:
f.write(output)
else:
log.info('New changelog:\n%s', ''.join(content_lines))
Expand Down
2 changes: 1 addition & 1 deletion requirements/runtime.txt
@@ -1,6 +1,6 @@
PyYAML < 4.0.0
plumbum < 1.5.0
click < 2.6.0
click < 4.0.0
path.py < 5.0.0
semantic_version < 3.0.0
twine < 1.4.0
Expand Down

0 comments on commit 71d1fbc

Please sign in to comment.