mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add boilerplate from __future__ and type declarations
This commit is contained in:
parent
11d0eb04ce
commit
780c8986af
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue