Of course not. str(problem) will never work (because problem has unicode
symbols). If you want to encode problem to str you just do
problem.encode('utf-8'), but why would you need that? Everything works with
just fine with unicode(problem).
p.s.: Oh, I forgot that you could just rewrite the __s
On Mon, 2010-06-14 at 16:06 +0300, BebiX kost wrote:
> Hi! There's a small bug at yum right now (fedora rawhide) for non-ascii users
> and here's how to fix it:
> at /usr/lib/python2.6/site-packages/yum/history.py at line 417 replace str to
> unicode.
>
> Something like this:
>
> def _trans_rpm
Hi! There's a small bug at yum right now (fedora rawhide) for non-ascii users
and here's how to fix it:
at /usr/lib/python2.6/site-packages/yum/history.py at line 417 replace str to
unicode.
Something like this:
def _trans_rpmdb_problem(self, problem):
if not hasattr(self, '_tid'):
return # Not