replace type() with isinstance() (#3404)

Replace use of type() with isinstance()

Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
jctanner 2016-11-09 13:46:50 -05:00 committed by Matt Clay
parent 81286b8912
commit 6cfb44b4bb
7 changed files with 22 additions and 22 deletions

View file

@ -149,7 +149,7 @@ def set_master_mode(client):
def flush(client, db=None):
try:
if type(db) != int:
if not isinstance(db, int):
return client.flushall()
else:
# The passed client has been connected to the database already