forked from VimPlug/jedi
Replaced type() comparison with cleaner isinstance
This commit is contained in:
@@ -68,7 +68,7 @@ def imitate_pydoc(string):
|
||||
pass
|
||||
|
||||
get_target = lambda s: h.topics.get(s, h.keywords.get(s))
|
||||
while type(string) == type(''):
|
||||
while isinstance(string, str):
|
||||
string = get_target(string)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user