From 8928adf62e869677a21404f70a47faa5a082483b Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 13 Jan 2017 13:16:21 -0600 Subject: [PATCH] Updates uri to use six for isinstance comparison for py3 compatibility (#20239) --- lib/ansible/modules/network/basics/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/basics/uri.py b/lib/ansible/modules/network/basics/uri.py index 882f3fd5d83..84da897805d 100644 --- a/lib/ansible/modules/network/basics/uri.py +++ b/lib/ansible/modules/network/basics/uri.py @@ -401,7 +401,7 @@ def main(): if body_format == 'json': # Encode the body unless its a string, then assume it is pre-formatted JSON - if not isinstance(body, basestring): + if not isinstance(body, six.string_types): body = json.dumps(body) lower_header_keys = [key.lower() for key in dict_headers] if 'content-type' not in lower_header_keys: