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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux