Avoid file module false positive in newer pylint.

pull/70150/head
Matt Clay 4 years ago
parent 1a0d8a51cd
commit 9bbde9d085

@ -558,7 +558,7 @@ def execute_touch(path, follow, timestamps):
changed = module.set_fs_attributes_if_different(file_args, changed, diff, expand=False)
changed |= update_timestamp_for_file(file_args['path'], mtime, atime, diff)
except SystemExit as e:
if e.code:
if e.code: # this is the exit code passed to sys.exit, not a constant -- pylint: disable=using-constant-test
# We take this to mean that fail_json() was called from
# somewhere in basic.py
if prev_state == 'absent':

Loading…
Cancel
Save