diff options
Diffstat (limited to 'lib/ansible/executor/action_write_locks.py')
-rw-r--r-- | lib/ansible/executor/action_write_locks.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ansible/executor/action_write_locks.py b/lib/ansible/executor/action_write_locks.py index d2acae9b..fd827440 100644 --- a/lib/ansible/executor/action_write_locks.py +++ b/lib/ansible/executor/action_write_locks.py @@ -15,7 +15,9 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. -from __future__ import annotations +# Make coding more python3-ish +from __future__ import (absolute_import, division, print_function) +__metaclass__ = type import multiprocessing.synchronize @@ -27,7 +29,7 @@ if 'action_write_locks' not in globals(): # Do not initialize this more than once because it seems to bash # the existing one. multiprocessing must be reloading the module # when it forks? - action_write_locks: dict[str | None, multiprocessing.synchronize.Lock] = dict() + action_write_locks = dict() # type: dict[str | None, multiprocessing.synchronize.Lock] # Below is a Lock for use when we weren't expecting a named module. It gets used when an action # plugin invokes a module whose name does not match with the action's name. Slightly less |