mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
No need for a continuation line.
This commit is contained in:
parent
656d4519b5
commit
cc1fccbc1c
1 changed files with 1 additions and 2 deletions
|
@ -942,8 +942,7 @@ def whichmodule(func, funcname):
|
||||||
for name, module in sys.modules.items():
|
for name, module in sys.modules.items():
|
||||||
if module is None:
|
if module is None:
|
||||||
continue # skip dummy package entries
|
continue # skip dummy package entries
|
||||||
if name != '__main__' and \
|
if name != '__main__' and getattr(module, funcname, None) is func:
|
||||||
getattr(module, funcname, None) is func:
|
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
name = '__main__'
|
name = '__main__'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue