Replaced type() comparison with cleaner isinstance

This commit is contained in:
Danilo Bargen
2012-10-20 23:39:48 +02:00
parent bb76792ea8
commit 0d6e2a5b70

View File

@@ -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: