[Yum-devel] urlgrabber & python3

Toshio Kuratomi a.badger at gmail.com
Thu Jul 26 22:45:52 UTC 2012


On Thu, Jul 26, 2012 at 3:32 PM, Toshio Kuratomi <a.badger at gmail.com> wrote:
> On Thu, Jul 26, 2012 at 01:37:54PM +0200, Zdeněk Pavlas wrote:
>
>> [PATCH 4/4] python3-compat: handle renamed modules and types
>>
>> Handle the random renaming of python modules.
>
> This one's ugly but I don't know a way around it.  It shouldn't interfere
> with python-2.4 compat if needed.
>
Okay -- for some of these, there actually is a better solution if
you're willing to add another dep:

http://packages.python.org/six/#module-six.moves

urllib/urllib2 is noticably absent (as explained on that page) from
the standard things handled there but it is easy to add them via the
six.add_moves() method.

-Toshio


More information about the Yum-devel mailing list