[Yum-devel] [PATCH] switch from to_unicode() to to_utf8()
Seth Vidal
skvidal at fedoraproject.org
Mon Aug 9 14:36:31 UTC 2010
---
yum/history.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/yum/history.py b/yum/history.py
index 488404d..6a485d8 100644
--- a/yum/history.py
+++ b/yum/history.py
@@ -27,7 +27,7 @@ import yum.misc as misc
import yum.constants
from yum.constants import *
from yum.packages import YumInstalledPackage, YumAvailablePackage, PackageObject
-from yum.i18n import to_unicode
+from yum.i18n import to_unicode, to_utf8
_history_dir = '/var/lib/yum/history'
@@ -610,7 +610,7 @@ class YumHistory:
# open file in append
fo = open(data_fn, 'w+')
# write data
- fo.write(to_unicode(data))
+ fo.write(to_utf8(data))
# flush data
fo.flush()
fo.close()
--
1.7.2
More information about the Yum-devel
mailing list