No need for a continuation line.
This commit is contained in:
parent
656d4519b5
commit
cc1fccbc1c
|
@ -942,8 +942,7 @@ def whichmodule(func, funcname):
|
|||
for name, module in sys.modules.items():
|
||||
if module is None:
|
||||
continue # skip dummy package entries
|
||||
if name != '__main__' and \
|
||||
getattr(module, funcname, None) is func:
|
||||
if name != '__main__' and getattr(module, funcname, None) is func:
|
||||
break
|
||||
else:
|
||||
name = '__main__'
|
||||
|
|
Loading…
Reference in New Issue