mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
modules: update code to python3 (#10904)
* modules: update code to python3 * pamd: rollback changes * add changelog frag * fix/improve assignments using generators * Update plugins/modules/launchd.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -101,8 +101,9 @@ class Bzr(object):
|
||||
cmd = [self.bzr_path, "status", "-S"]
|
||||
rc, stdout, stderr = self.module.run_command(cmd, cwd=self.dest)
|
||||
lines = stdout.splitlines()
|
||||
mods_re = re.compile('^\\?\\?.*$')
|
||||
|
||||
lines = filter(lambda c: not re.search('^\\?\\?.*$', c), lines)
|
||||
lines = [c for c in lines if not mods_re.search(c)]
|
||||
return len(lines) > 0
|
||||
|
||||
def reset(self, force):
|
||||
|
||||
Reference in New Issue
Block a user