Update of /cvsroot/pywin32/pywin32/com/win32comext/axdebug
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18639/com/win32comext/axdebug
Modified Files:
adb.py codecontainer.py documents.py util.py
Log Message:
various syntax modernizations
Index: adb.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/adb.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** adb.py 8 Apr 2008 11:14:00 -0000 1.6
--- adb.py 26 Nov 2008 08:39:33 -0000 1.7
***************
*** 204,210 ****
bdb.Bdb.user_return(self, frame, return_value)
! def user_exception(self, frame, (exc_type, exc_value, exc_traceback)):
# traceenter("user_exception")
! bdb.Bdb.user_exception(self, frame, (exc_type, exc_value, exc_traceback))
--- 204,210 ----
bdb.Bdb.user_return(self, frame, return_value)
! def user_exception(self, frame, exc_info):
# traceenter("user_exception")
! bdb.Bdb.user_exception(self, frame, exc_info)
Index: util.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/util.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** util.py 18 Jun 2006 13:18:26 -0000 1.3
--- util.py 26 Nov 2008 08:39:33 -0000 1.4
***************
*** 112,114 ****
import traceback
traceback.print_exception(typ, val, tb)
! raise typ, val, tb
--- 112,114 ----
import traceback
traceback.print_exception(typ, val, tb)
! raise
Index: documents.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/documents.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** documents.py 18 Jun 2006 13:18:26 -0000 1.2
--- documents.py 26 Nov 2008 08:39:33 -0000 1.3
***************
*** 15,19 ****
def GetGoodFileName(fname):
! if fname[0] <> "<":
return win32api.GetFullPathName(fname)
return fname
--- 15,19 ----
def GetGoodFileName(fname):
! if fname[0] != "<":
return win32api.GetFullPathName(fname)
return fname
Index: codecontainer.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/codecontainer.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** codecontainer.py 18 Jun 2006 13:18:26 -0000 1.4
--- codecontainer.py 26 Nov 2008 08:39:33 -0000 1.5
***************
*** 106,110 ****
line, pos = self._buildline(pos)
! def _ProcessToken(self, type, token, (srow, scol), (erow, ecol), line):
self.GetText() # Prime us.
linenum = srow - 1 # Lines zero based for us too.
--- 106,112 ----
line, pos = self._buildline(pos)
! def _ProcessToken(self, type, token, spos, epos, line):
! srow, scol = spos
! erow, ecol = epos
self.GetText() # Prime us.
linenum = srow - 1 # Lines zero based for us too.
|