[libvirt] [PATCH v2 4/8] python3: Remove uses of string.*() functions

Andrea Bolognani abologna at redhat.com
Thu Mar 15 16:44:02 UTC 2018


On Thu, 2018-03-15 at 16:36 +0000, Daniel P. Berrangé wrote:
> > @@ -478,8 +478,8 @@ class CLexer:
> >                  return None
> >  
> >              if line[0] == '#':
> > -                self.tokens = map((lambda x: ('preproc', x)),
> > -                                  string.split(line))
> > +                self.tokens = list(map((lambda x: ('preproc', x)),
> > +                                       line.split()))
> 
> Nitpick - the list() addition belongs in a later patch

Nice catch, I'll split the changes before pushing.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list