From 780c8986af0ecb90feea5c48055c9b7f6afb47a7 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 10 Jul 2018 14:15:17 -0700 Subject: [PATCH] Add boilerplate from __future__ and type declarations --- lib/ansible/module_utils/common/file.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/common/file.py b/lib/ansible/module_utils/common/file.py index e9b3b48cc55..4bf281e7057 100644 --- a/lib/ansible/module_utils/common/file.py +++ b/lib/ansible/module_utils/common/file.py @@ -1,6 +1,9 @@ # Copyright (c) 2018, Ansible Project # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type + import errno import os import stat @@ -29,7 +32,7 @@ class LockTimeout(Exception): pass -class FileLock(): +class FileLock: ''' Currently FileLock is implemented via fcntl.flock on a lock file, however this behaviour may change in the future. Avoid mixing lock types fcntl.flock,