未验证 提交 9a2b04e7 编写于 作者: A Ansgar

Changes.buildinfo_files: use list comprehension to simplify implementation

上级 30dd7511
......@@ -415,13 +415,10 @@ class Changes:
"""included buildinfo files
@type: list of L{daklib.upload.HashedFile}
"""
buildinfo = []
for f in self.files.values():
if re_file_buildinfo.match(f.filename):
buildinfo.append(f)
return buildinfo
return [
f for f in self.files.values()
if re_file_buildinfo.match(f.filename)
]
@property
def binary_names(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册