Get rid of a lot of flake8 errors

This commit is contained in:
Dave Halter committed 2020-01-01 02:42:31 +01:00
1 parent 818577f423
commit 66ad620692
12 files changed
+47 -47

No files matched your search

+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)