[Python-checkins] r71019 - python/trunk/Lib/pdb.py

georg.brandl python-checkins at python.org
Thu Apr 2 04:00:01 CEST 2009


Author: georg.brandl
Date: Thu Apr  2 04:00:01 2009
New Revision: 71019

Log:
Fix test_doctest, missed two assignments to curframe.

Modified:
   python/trunk/Lib/pdb.py

Modified: python/trunk/Lib/pdb.py
==============================================================================
--- python/trunk/Lib/pdb.py	(original)
+++ python/trunk/Lib/pdb.py	Thu Apr  2 04:00:01 2009
@@ -616,6 +616,7 @@
         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 @@
         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


More information about the Python-checkins mailing list