From 5edd6d9be47767dbb2c7889be9e596a672a04b71 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 29 Sep 2015 09:01:57 +0300 Subject: [PATCH] Python 3: there's no basestring Fixes another failing test. (I don't want to do a global search/replace for 'basestring' because I want to have unit tests covering each occurrence. When I run out of existing failing tests, I'll try to write new ones.) --- lib/ansible/playbook/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index e706aa18202..c225c8b9722 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -118,7 +118,7 @@ class Task(Base, Conditional, Taggable, Become): def _merge_kv(self, ds): if ds is None: return "" - elif isinstance(ds, basestring): + elif isinstance(ds, string_types): return ds elif isinstance(ds, dict): buf = ""