diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-05-26 19:51:09 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-05-26 19:51:09 +0200 |
commit | 902679c47c3d1238833ac9c9fdbc7c0ddbedf509 (patch) | |
tree | 5ac59cbf48ae9afe82bf2e373340199f4c84de0d | |
parent | 5efdad2502098a2bd3af181931dc011501a13904 (diff) | |
download | gitpython-902679c47c3d1238833ac9c9fdbc7c0ddbedf509.tar.gz |
fix(remote): py3 compatibility
Related to #444
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py index b440e2cc..92203588 100644 --- a/git/remote.py +++ b/git/remote.py @@ -32,7 +32,7 @@ from git.util import ( ) from git.cmd import handle_process_output from gitdb.util import join -from git.compat import (defenc, safe_decode) +from git.compat import (defenc, force_text) import logging log = logging.getLogger('git.remote') @@ -551,7 +551,7 @@ class Remote(LazyMixin, Iterable): progress_handler = progress.new_message_handler() for line in proc.stderr: - line = safe_decode(line) + line = force_text(line) for pline in progress_handler(line): if line.startswith('fatal:') or line.startswith('error:'): raise GitCommandError(("Error when fetching: %s" % line,), 2) |