]> granicus.if.org Git - python/commitdiff
Fix test_doctest, missed two assignments to curframe.
authorGeorg Brandl <georg@python.org>
Thu, 2 Apr 2009 02:00:01 +0000 (02:00 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 2 Apr 2009 02:00:01 +0000 (02:00 +0000)
Lib/pdb.py

index 8b747e714a00cb5bccf5f94e2412ce3d7999d84c..b00bbae45678d6bf9e030ddbc225c9f5a04ee5bb 100755 (executable)
@@ -616,6 +616,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
         else:
             self.curindex = self.curindex - 1
             self.curframe = self.stack[self.curindex][0]
+            self.curframe_locals = self.curframe.f_locals
             self.print_stack_entry(self.stack[self.curindex])
             self.lineno = None
     do_u = do_up
@@ -626,6 +627,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
         else:
             self.curindex = self.curindex + 1
             self.curframe = self.stack[self.curindex][0]
+            self.curframe_locals = self.curframe.f_locals
             self.print_stack_entry(self.stack[self.curindex])
             self.lineno = None
     do_d = do_down