rx = re.compile("^gpg:.*using\s[DR]SA\skey\s(?:ID\s)?(\w+)")
keys = []
- for l in d_stderr.split('\n'):
+ for l in d_stderr.decode().split('\n'):
m = rx.match(l)
if m:
keys.append(m.group(1))
rx = re.compile("^gpg: (Good signature from| aka) .*<([^>]+)>")
emails = []
- for l in d_stderr.split('\n'):
+ for l in d_stderr.decode().split('\n'):
m = rx.match(l)
if m:
emails.append(m.group(2))
raise
if len(d_stderr):
- log.error("gpg: %s" % d_stderr)
+ log.error("gpg: %s" % d_stderr.decode())
return d_stdout