mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +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():
|
||||
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…
Add table
Add a link
Reference in a new issue