Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit902679c

Browse files
committed
fix(remote): py3 compatibility
Related to#444
1 parent5efdad2 commit902679c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
)
3333
fromgit.cmdimporthandle_process_output
3434
fromgitdb.utilimportjoin
35-
fromgit.compatimport (defenc,safe_decode)
35+
fromgit.compatimport (defenc,force_text)
3636
importlogging
3737

3838
log=logging.getLogger('git.remote')
@@ -551,7 +551,7 @@ def _get_fetch_info_from_stderr(self, proc, progress):
551551
progress_handler=progress.new_message_handler()
552552

553553
forlineinproc.stderr:
554-
line=safe_decode(line)
554+
line=force_text(line)
555555
forplineinprogress_handler(line):
556556
ifline.startswith('fatal:')orline.startswith('error:'):
557557
raiseGitCommandError(("Error when fetching: %s"%line,),2)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp