On Wed, 2011-12-21 at 17:01 +0100, Zdeněk Pavlas wrote: > Changes are local to the last 'po' loop. ERR path is elliminated > with the 'errorfunc' argument to getPackage(). OK path is merged to > checkfunc. > --- > yum/__init__.py | 47 +++++++++++++++++++++++------------------------ > 1 files changed, 23 insertions(+), 24 deletions(-)
ACK, but: > diff --git a/yum/__init__.py b/yum/__init__.py > index 994a840..dd6bd09 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -90,6 +90,8 @@ import StringIO > from weakref import proxy as weakref > > from urlgrabber.grabber import default_grabber > +try: from urlgrabber.grabber import parallel_wait > +except ImportError: parallel_wait = lambda *x, **y: None There's no reason to not use multiple lines here, and a real function, like other yum ImportError checks. _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
