From 0d6e2a5b707933327430568dd056f1f20100a796 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sat, 20 Oct 2012 23:39:48 +0200 Subject: [PATCH] Replaced `type()` comparison with cleaner `isinstance` --- jedi/keywords.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/keywords.py b/jedi/keywords.py index 1e595c68..334db13a 100644 --- a/jedi/keywords.py +++ b/jedi/keywords.py @@ -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: