On Mon, Dec 13, 2010 at 5:44 PM, seth vidal <[email protected]>wrote:

> On Fri, 2010-12-10 at 20:58 -0800, Toshio Kuratomi wrote:
>
> > If I was using kitchen's to_unicode, I could shorten the list of
> functions
> > and skip the final to_unicode call::
> > from kitchen.text.converters import to_unicode
> >     conversion_funcs = (to_unicode, lambda e: to_unicode(e.args[0]),
> lambda e: to_unicode(e.value))
> >     for func in conversion_funcs:
> >         try:
> >             return func(e)
> >         except:
> >             pass
> >     return u'<exception failed to convert to text>'
> >
>
>
> Seems like now might be a fine time to pull in python-kitchen as a dep
> and then work to migrate out our own functions from misc.py and i18n.py
> a little at a time.
>
>
Sound like a good idea to me :)

Tim
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to