summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-05-27 09:13:05 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-05-27 09:13:05 +0200
commitc5077dac4c7680c925f4c5e792eeb3c296a3b4c4 (patch)
tree3594143a9d19e139b10574c31f3d57797ade579d
parent06ea4a0b0d6fcb20a106f9367f446b13df934533 (diff)
parent39164b038409cb66960524e19f60e83d68790325 (diff)
downloadgitpython-c5077dac4c7680c925f4c5e792eeb3c296a3b4c4.tar.gz
Merge pull request #447 from Xender/patch-1
Use proper syntax for conditional expressions.
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 0c3cc8ca..c29e3485 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -609,7 +609,7 @@ class Git(LazyMixin):
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,