mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
apibuild: Use list comprehension insteand of map
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
This commit is contained in:
parent
d2e226df5c
commit
c3e611927c
@ -471,8 +471,7 @@ class CLexer:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
if line[0] == '#':
|
if line[0] == '#':
|
||||||
self.tokens = list(map((lambda x: ('preproc', x)),
|
self.tokens = [('preproc', word) for word in line.split()]
|
||||||
line.split()))
|
|
||||||
|
|
||||||
# We might have whitespace between the '#' and preproc
|
# We might have whitespace between the '#' and preproc
|
||||||
# macro name, so instead of having a single token element
|
# macro name, so instead of having a single token element
|
||||||
|
Loading…
x
Reference in New Issue
Block a user