make keys strings unicode instance strings

This commit is contained in:
Nikos Kouremenos 2005-09-23 18:49:51 +00:00
parent 62ef3f459f
commit 89d170c8b4
1 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@
##
from os import tmpfile
import locale
USE_GPG = True
@ -167,7 +168,9 @@ else:
sline = line.split(':')
if (sline[0] == 'sec' and secret) or \
(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
try: proc.wait()
except IOError: pass