Permalink
Browse files

Replaced `type()` comparison with cleaner `isinstance`

  • Loading branch information...
1 parent bb76792 commit 0d6e2a5b707933327430568dd056f1f20100a796 @dbrgn dbrgn committed Oct 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jedi/keywords.py
View
@@ -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:

0 comments on commit 0d6e2a5

Please sign in to comment.