ui: subprocess.Popen doesn't have 'args' attribute in Python 2

master
Roman Zeyde 6 years ago
parent d0732d16e8
commit 6d730e0a5b
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

@ -91,10 +91,12 @@ def expect(p, prefixes, confidential=False):
def interact(title, description, prompt, binary, options):
"""Use GPG pinentry program to interact with the user."""
p = subprocess.Popen(args=[binary],
args = [binary]
p = subprocess.Popen(args=args,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
env=os.environ)
p.args = args # TODO: remove after Python 2 deprecation.
expect(p, [b'OK'])
title = util.assuan_serialize(title.encode('ascii'))

Loading…
Cancel
Save