Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Lib/linecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ def updatecache(filename, module_globals=None):
if _source_unavailable(filename):
return []

if filename.startswith('<frozen ') and module_globals is not None:
if filename.startswith('<frozen '):
# This is a frozen module, so we need to use the filename
# from the module globals.
if module_globals is None:
return []

fullname = module_globals.get('__file__')
if fullname is None:
return []
Expand Down
Loading