make keys strings unicode instance strings
This commit is contained in:
parent
62ef3f459f
commit
89d170c8b4
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
from os import tmpfile
|
from os import tmpfile
|
||||||
|
import locale
|
||||||
|
|
||||||
USE_GPG = True
|
USE_GPG = True
|
||||||
|
|
||||||
|
@ -167,7 +168,9 @@ else:
|
||||||
sline = line.split(':')
|
sline = line.split(':')
|
||||||
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):
|
||||||
keys[sline[4][8:]] = sline[9]
|
# make it unicode instance
|
||||||
|
keys[sline[4][8:]] = sline[9].decode(
|
||||||
|
locale.getpreferredencoding())
|
||||||
return keys
|
return keys
|
||||||
try: proc.wait()
|
try: proc.wait()
|
||||||
except IOError: pass
|
except IOError: pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue