118
118
if frame_name.endswith('demandload'):
119
119
# If this was demandloaded, we have 3 frames to ignore
122
122
frame_name = frame.f_globals.get('__name__', '<unknown>')
123
123
elif frame_name.endswith('lazy_import'):
124
124
# If this was lazily imported, we have 3 frames to ignore
127
127
frame_name = frame.f_globals.get('__name__', '<unknown>')
129
129
extra += ' [%s]' % (', '.join(map(str, fromlist)),)
130
130
frame_lineno = frame.f_lineno
132
this = stack_add(name+extra, frame_name, frame_lineno, scope_name)
132
this = stack_add(extra + name, frame_name, frame_lineno, scope_name)