提交 c3e61192 编写于 作者: R Radostin Stoyanov 提交者: Daniel P. Berrangé

apibuild: Use list comprehension insteand of map

Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: NRadostin Stoyanov <rstoyanov1@gmail.com>
上级 d2e226df
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册