Re: [Yum-devel] urlgrabber & python3

2012-07-26 Thread Toshio Kuratomi
On Thu, Jul 26, 2012 at 3:32 PM, Toshio Kuratomi 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 s

Re: [Yum-devel] urlgrabber & python3

2012-07-26 Thread Toshio Kuratomi
Now that James has weighed in. Just some comments on compatibility if someone does complain about python-2.4 compat. On Thu, Jul 26, 2012 at 01:37:54PM +0200, Zdeněk Pavlas wrote: > > Q: Does it still run under Python2? > A: Yes, that was the main focus. Python 2.6+ is required. > > [PATCH 1/4

Re: [Yum-devel] urlgrabber & python3

2012-07-26 Thread James Antill
On Thu, 2012-07-26 at 13:37 +0200, Zdeněk Pavlas wrote: > Hi, > > Someday, we'll have to switch (or write a new module). Not sure what you mean here. > If we merge the easy bits first, it will be much easier. Yeh, it's all easy and should work ... a lot of it looks ugly as sin though, and is

[Yum-devel] [PATCH 4/4] python3-compat: handle renamed modules and types

2012-07-26 Thread Zdeněk Pavlas
--- urlgrabber/__init__.py |2 +- urlgrabber/byterange.py | 81 - urlgrabber/grabber.py | 101 --- urlgrabber/mirror.py| 14 +-- urlgrabber/progress.py | 13 +- 5 files changed, 125 insertion

[Yum-devel] [PATCH 3/4] python3-compat: print

2012-07-26 Thread Zdeněk Pavlas
--- scripts/urlgrabber | 40 urlgrabber/grabber.py | 38 -- urlgrabber/progress.py |2 -- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/scripts/urlgrabber b/scripts/urlgrabber index a23a11c

[Yum-devel] [PATCH 2/4] python3-compat: except

2012-07-26 Thread Zdeněk Pavlas
--- scripts/urlgrabber |6 ++-- scripts/urlgrabber-ext-down |4 +- urlgrabber/byterange.py | 10 urlgrabber/grabber.py | 51 ++- urlgrabber/mirror.py|4 +- 5 files changed, 38 insertions(+), 37 deletions(-)

[Yum-devel] [PATCH 1/4] python3-compat: raise

2012-07-26 Thread Zdeněk Pavlas
--- urlgrabber/byterange.py | 10 +- urlgrabber/grabber.py |8 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/urlgrabber/byterange.py b/urlgrabber/byterange.py index 8eeaeda..e30cd48 100644 --- a/urlgrabber/byterange.py +++ b/urlgrabber/byterange.py @@ -120

[Yum-devel] urlgrabber & python3

2012-07-26 Thread Zdeněk Pavlas
Hi, Someday, we'll have to switch (or write a new module). If we merge the easy bits first, it will be much easier. Q: Why urlgrabber? A: It's going to be used by both Yum and DNF, and is relatively small- a nice test bed to test how far one could get. Q: Does it now run under Python3? A: No, as