Skip to content

Commit 972ea0f

Browse files
colesburyvstinner
andauthored
Update Tools/gdb/libpython.py
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent a44b2a7 commit 972ea0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/gdb/libpython.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,8 +1275,9 @@ def print_traceback_until_shim(self, frame_index = None):
12751275
if not interp_frame:
12761276
sys.stdout.write(' (unable to read python frame information)\n')
12771277
return None
1278-
elif interp_frame.is_shim():
1278+
if interp_frame.is_shim():
12791279
return interp_frame.previous()
1280+
12801281
if frame_index is not None:
12811282
line = interp_frame.get_truncated_repr(MAX_OUTPUT_LEN)
12821283
sys.stdout.write('#%i %s\n' % (frame_index, line))

0 commit comments

Comments
 (0)