Skip to content

Commit 31c8dbc

Browse files
committed
fix: revert another change
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 884ee49 commit 31c8dbc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Lib/pdb.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,10 +1408,7 @@ def do_break(self, arg, temporary=False):
14081408
# To be overridden in derived debuggers
14091409
def defaultFile(self):
14101410
"""Produce a reasonable default."""
1411-
if self.curframe is None:
1412-
filename = '<string>'
1413-
else:
1414-
filename = self.curframe.f_code.co_filename
1411+
filename = self.curframe.f_code.co_filename
14151412
if filename == '<string>' and self.mainpyfile:
14161413
filename = self.mainpyfile
14171414
return filename

0 commit comments

Comments
 (0)