Get rid of a lot of flake8 errors

This commit is contained in:
Dave Halter
2020-01-01 02:42:31 +01:00
parent 818577f423
commit 66ad620692
12 changed files with 47 additions and 47 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ def imitate_pydoc(string):
string = h.symbols[string]
string, _, related = string.partition(' ')
get_target = lambda s: h.topics.get(s, h.keywords.get(s))
def get_target(s):
return h.topics.get(s, h.keywords.get(s))
while isinstance(string, str):
string = get_target(string)