[entropy.security] a small python3.x fix

This commit is contained in:
Fabio Erculiani
2011-02-10 16:08:34 +01:00
parent f9226e6e3d
commit 9fcacbd3b5
+2 -1
View File
@@ -22,7 +22,7 @@ import time
from entropy.exceptions import EntropyException
from entropy.const import etpConst, etpUi, const_setup_perms, \
const_debug_write, const_setup_file
const_debug_write, const_setup_file, const_convert_to_unicode
from entropy.i18n import _
from entropy.output import blue, bold, red, darkgreen, darkred, purple, brown
from entropy.cache import EntropyCacher
@@ -1459,6 +1459,7 @@ class Repository:
valid_keywords = ['pub', 'uid', 'sec', 'fpr']
result = Repository.ListKeys()
for line in out_data:
line = const_convert_to_unicode(line)
const_debug_write(__name__, "_list_keys: read => %s" % (
line.strip(),))