Skip to content
Snippets Groups Projects
Commit 89d170c8 authored by nkour's avatar nkour
Browse files

make keys strings unicode instance strings

parent 62ef3f45
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment