1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Use different syntax in lambda

This commit is contained in:
Ben Doherty 2016-05-27 00:00:59 -04:00 committed by Matt Clay
parent c9291e06f6
commit 506f3f68f1

View file

@ -229,11 +229,7 @@ def main():
if os.path.isdir(path) and not path.endswith(os.sep + '.'):
basename = os.path.basename(path) + os.sep
filter_create = lambda f:
if filecmp.cmp(f.name, creates):
return f
archive.add(path, path[len(arcroot):], filter=filter_create)
archive.add(path, path[len(arcroot):], filter=lambda f: not filecmp.cmp(f.name, creates) and f)
successes.append(path)
# Slightly more difficult (and less efficient!) compression using zipfile module