[PATCHv2 21/25] apibuild: Use list comprehension insteand of map

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

 



Signed-off-by: Radostin Stoyanov <rstoyanov1@xxxxxxxxx>
---
 docs/apibuild.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index f073b36c7..98224c7e7 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -471,8 +471,7 @@ class CLexer:
                 return None
 
             if line[0] == '#':
-                self.tokens = list(map((lambda x: ('preproc', x)),
-                                       line.split()))
+                self.tokens = [('preproc', word) for word in line.split()]
 
                 # We might have whitespace between the '#' and preproc
                 # macro name, so instead of having a single token element
-- 
2.14.3

--
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