Skip to content

Commit e7e5037

Browse files
Clear curframe_locals
1 parent 056361f commit e7e5037

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/pdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def forget(self):
281281
if hasattr(self, 'curframe') and self.curframe:
282282
self.curframe.f_globals.pop('__pdb_convenience_variables', None)
283283
self.curframe = None
284+
self.curframe_locals = {}
284285
self.tb_lineno.clear()
285286

286287
def setup(self, f, tb):

0 commit comments

Comments
 (0)