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

Commitab95886

Browse files
committed
Eliminate istream_ok variable
In Git.execute, the stdin argument to Popen is the only one where acompound expression (rather than a single term) is currentlypassed. So having that be the same in the log message makes iteasier to understand what is going on, as well as to see how theinformation shown in the log corresponds to what Popen receives.
1 parentc3fde7f commitab95886

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎git/cmd.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -973,16 +973,13 @@ def execute(
973973
# end handle
974974

975975
stdout_sink=PIPEifwith_stdoutelsegetattr(subprocess,"DEVNULL",None)oropen(os.devnull,"wb")
976-
istream_ok="None"
977-
ifistream:
978-
istream_ok="<valid stream>"
979976
ifshellisNone:
980977
shell=self.USE_SHELL
981978
log.debug(
982979
"Popen(%s, cwd=%s, stdin=%s, shell=%s, universal_newlines=%s)",
983980
redacted_command,
984981
cwd,
985-
istream_ok,
982+
"<valid stream>"ifistreamelse"None",
986983
shell,
987984
universal_newlines,
988985
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp