Skip to content

Commit

Permalink
Merge pull request #57 from michaeljoseph/fix-default-version-handling
Browse files Browse the repository at this point in the history
Use the default
  • Loading branch information
michaeljoseph committed Nov 15, 2013
2 parents d693c3c + 4c68326 commit 9479f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions changes/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def get_new_version(module_name, current_version, no_input,
)

if no_input:
new_version = proposed_new_version.strip()
new_version = proposed_new_version
else:
new_version = raw_input(
'What is the release version for "%s" '
'[Default: %s]: ' % (
module_name, proposed_new_version
)
)
) or proposed_new_version

return new_version.strip()

Expand Down

0 comments on commit 9479f76

Please sign in to comment.