Migrate basestring to a python3 compatible type (#17199)

This commit is contained in:
Toshio Kuratomi 2016-08-23 13:13:44 -07:00 committed by GitHub
parent a695e18615
commit a22909c226
28 changed files with 137 additions and 101 deletions

View file

@ -277,7 +277,8 @@ To test if something is a string, consider that it may be unicode.
if type(x) == str:
# yes
if isinstance(x, basestring):
from ansible.compat.six import string_types
if isinstance(x, string_types):
Cleverness
==========