Re: [PATCH] 470733 - yet more unicode errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, 11 Nov 2008, David Cantrell wrote:


toUTF8() doesn't strike me as the best way.  Can we not go with try/except and
catch UnicodeDecodeError rather than looking at the type of the str?  End
result is the same, I guess, but when I see code looking at types of variables
like this, it reminds me of various FailCode from Java at GT.



from yum.misc import to_unicode, to_utf8, to_unicode_maybe, to_str

in theory, those should help things a good bit.

-sv

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux