use decode_string in GnuPG
This commit is contained in:
parent
2a791af792
commit
97d1166be8
|
@ -179,8 +179,7 @@ else:
|
||||||
if (sline[0] == 'sec' and secret) or \
|
if (sline[0] == 'sec' and secret) or \
|
||||||
(sline[0] == 'pub' and not secret):
|
(sline[0] == 'pub' and not secret):
|
||||||
# make it unicode instance
|
# make it unicode instance
|
||||||
keys[sline[4][8:]] = sline[9].decode(
|
keys[sline[4][8:]] = helpers.decode_string(sline[9])
|
||||||
locale.getpreferredencoding())
|
|
||||||
return keys
|
return keys
|
||||||
try: proc.wait()
|
try: proc.wait()
|
||||||
except IOError: pass
|
except IOError: pass
|
||||||
|
|
Loading…
Reference in New Issue