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

Commit3c19a6e

Browse files
x-santiaga-xByron
authored andcommitted
fix universal_newlines TypeError
Fixes#1116
1 parent4a1339a commit3c19a6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎git/cmd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,9 @@ def _kill_process(pid):
785785
watchdog.cancel()
786786
ifkill_check.isSet():
787787
stderr_value= ('Timeout: the command "%s" did not complete in %d '
788-
'secs.'% (" ".join(command),kill_after_timeout)).encode(defenc)
788+
'secs.'% (" ".join(command),kill_after_timeout))
789+
ifnotuniversal_newlines:
790+
stderr_value=stderr_value.encode(defenc)
789791
# strip trailing "\n"
790792
ifstdout_value.endswith(newline):
791793
stdout_value=stdout_value[:-1]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp