mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Convert the whole files/ directory to py3 syntax (#3685)
This commit is contained in:
parent
0027158b74
commit
f7b29ba8fd
7 changed files with 36 additions and 18 deletions
|
@ -326,7 +326,8 @@ def main():
|
|||
st = os.stat(path)
|
||||
else:
|
||||
st = os.lstat(path)
|
||||
except OSError, e:
|
||||
except OSError:
|
||||
e = get_exception()
|
||||
if e.errno == errno.ENOENT:
|
||||
d = { 'exists' : False }
|
||||
module.exit_json(changed=False, stat=d)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue