From 496d96c01a0ff511dc7c988de862f8f0258011f7 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Mon, 10 Feb 2020 17:45:23 -0800 Subject: [PATCH] need to convert to str because of unicode_literals --- ansible_mitogen/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index dc98451f..f4cf69a5 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -506,7 +506,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): # set by `_get_task_vars()` for interpreter discovery # we need it to be an object with the value of "_finding_python_interpreter" in case we aren't # running interpreter discovery fully - _action = type('actionTemp', (object,), {'_finding_python_interpreter': False}) + _action = type(str('actionTemp'), (object,), {'_finding_python_interpreter': False}) # redeclaring interpreter discovery vars here in case running ansible < 2.8.0 _discovered_interpreter_key = None _discovered_interpreter = False