replace type() with isinstance() (#5541)

Replace all use of type() with isintance()

Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
jctanner 2016-11-09 13:46:18 -05:00 committed by Matt Clay
parent 2744fde7c9
commit 06e1141106
7 changed files with 17 additions and 17 deletions

View file

@ -450,10 +450,10 @@ def main():
value_list = ()
if type(value_in) is str:
if isinstance(value_in, str):
if value_in:
value_list = sorted([s.strip() for s in value_in.split(',')])
elif type(value_in) is list:
elif isinstance(value_in, list):
value_list = sorted(value_in)
if zone_in[-1:] != '.':