Apply patch 0001: Make _open_subprocess argument more explicit in _handle_io().

feature/documentation-builds-dirhtml
Isis Lovecruft 2001-09-17 00:00:00 +00:00 committed by Isis Lovecruft
parent 695c4875d3
commit 617eb53e57
1 changed files with 5 additions and 1 deletions

View File

@ -1247,7 +1247,11 @@ class GPG(object):
"""
Handle a call to GPG - pass input data, collect output data.
"""
p = self._open_subprocess(args, passphrase is not None)
if passphrase is not None:
ask_passphrase = True
else:
ask_passphrase = False
p = self._open_subprocess(args, ask_passphrase)
if not binary:
stdin = codecs.getwriter(self.encoding)(p.stdin)
else: