1
0
forked from VimPlug/jedi

Use isinstance instead of unary type

This commit is contained in:
Laurens Van Houtven
2013-07-10 19:00:11 +02:00
parent 18c105b055
commit afcaa89cf0
3 changed files with 3 additions and 3 deletions

View File

@@ -526,7 +526,7 @@ def check_statement_information(stmt, search_name):
# this might be removed if we analyze and, etc
assert len(commands) == 1
call = commands[0]
assert type(call) == pr.Call and str(call.name) == 'isinstance'
assert isinstance(call, pr.Call) and str(call.name) == 'isinstance'
assert bool(call.execution)
# isinstance check