Skip to content

Commit

Permalink
fix formatting a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
c4urself committed Aug 25, 2019
1 parent 32cba4f commit c39248c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bumpversion/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from bumpversion.exceptions import (
WorkingDirectoryIsDirtyException,
MercurialDoesNotSupportSignedTagsException
MercurialDoesNotSupportSignedTagsException,
)
from bumpversion.compat import _command_args

Expand All @@ -29,8 +29,8 @@ def commit(cls, message, context):
f.write(message.encode("utf-8"))
env = os.environ.copy()
env[str("HGENCODING")] = str("utf-8")
for key in ["current_version", "new_version"]:
env[str("BUMPVERSION_"+key.upper())] = str(context[key])
for key in ("current_version", "new_version"):
env[str("BUMPVERSION_" + key.upper())] = str(context[key])
try:
subprocess.check_output(cls._COMMIT_COMMAND + [f.name], env=env)
except subprocess.CalledProcessError as exc:
Expand Down

0 comments on commit c39248c

Please sign in to comment.