Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use proper syntax for conditional expression
(instead of abusing the "short-circuit" property of logical operations)
  • Loading branch information
Xender committed May 26, 2016
commit 39164b038409cb66960524e19f60e83d68790325
2 changes: 1 addition & 1 deletion git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def execute(self, command,
bufsize=-1,
stdin=istream,
stderr=PIPE,
stdout=with_stdout and PIPE or open(os.devnull, 'wb'),
stdout=PIPE if with_stdout else open(os.devnull, 'wb'),
shell=self.USE_SHELL,
close_fds=(os.name == 'posix'), # unsupported on windows
universal_newlines=universal_newlines,
Expand Down