Skip to content

Commit c5077da

Browse files
committed
Merge pull request gitpython-developers#447 from Xender/patch-1
Use proper syntax for conditional expressions.
2 parents 06ea4a0 + 39164b0 commit c5077da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def execute(self, command,
609609
bufsize=-1,
610610
stdin=istream,
611611
stderr=PIPE,
612-
stdout=with_stdout and PIPE or open(os.devnull, 'wb'),
612+
stdout=PIPE if with_stdout else open(os.devnull, 'wb'),
613613
shell=self.USE_SHELL,
614614
close_fds=(os.name == 'posix'), # unsupported on windows
615615
universal_newlines=universal_newlines,

0 commit comments

Comments
 (0)