Skip to content

Commit

Permalink
Bug 1515261 - [mozversioncontrol] Fix unicode env string on Windows, …
Browse files Browse the repository at this point in the history
…r=sheehan

Differential Revision: https://phabricator.services.mozilla.com/D15727
  • Loading branch information
ahal committed Jan 4, 2019
1 parent 3712d3f commit cf8a2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mozversioncontrol/mozversioncontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Repository(object):
def __init__(self, path, tool):
self.path = os.path.abspath(path)
self._tool = get_tool_path(tool)
self._env = os.environ.copy()
self._env = {k.encode('utf8'): v.encode('utf8') for k, v in os.environ.items()}
self._version = None
self._valid_diff_filter = ('m', 'a', 'd')

Expand Down

0 comments on commit cf8a2a8

Please sign in to comment.