Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9809
Modified Files:
Tag: py3k
debugger.py
Log Message:
Use str on __name__, which may be None under unusual circumstances
Index: debugger.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/debugger/debugger.py,v
retrieving revision 1.17.2.1
retrieving revision 1.17.2.2
diff -C2 -d -r1.17.2.1 -r1.17.2.2
*** debugger.py 29 Aug 2008 06:16:41 -0000 1.17.2.1
--- debugger.py 3 Sep 2008 21:30:18 -0000 1.17.2.2
***************
*** 56,60 ****
# See if locals has a '__name__' (ie, a module)
if '__name__' in self.myobject.f_locals:
! name = self.myobject.f_locals['__name__'] + " module"
else:
name = '<Debugger Context>'
--- 56,60 ----
# See if locals has a '__name__' (ie, a module)
if '__name__' in self.myobject.f_locals:
! name = str(self.myobject.f_locals['__name__']) + " module"
else:
name = '<Debugger Context>'
***************
*** 578,582 ****
def user_exception(self, frame, exc_info):
- print ('user exception callled !!!!!!!')
# This function is called if an exception occurs,
# but only if we are to stop at or just below this level
--- 578,581 ----
|