Update of /cvsroot/pywin32/pywin32/com/win32comext/axdebug
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/com/win32comext/axdebug
Modified Files:
adb.py codecontainer.py
Log Message:
modernizations: replace most remaining has_key() calls with 'in' statements.
Index: adb.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/adb.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** adb.py 26 Nov 2008 08:39:33 -0000 1.7
--- adb.py 27 Nov 2008 09:42:41 -0000 1.8
***************
*** 87,91 ****
def __xxxxx__set_break(self, filename, lineno, cond = None):
# As per standard one, except no linecache checking!
! if not self.breaks.has_key(filename):
self.breaks[filename] = []
list = self.breaks[filename]
--- 87,91 ----
def __xxxxx__set_break(self, filename, lineno, cond = None):
# As per standard one, except no linecache checking!
! if filename not in self.breaks:
self.breaks[filename] = []
list = self.breaks[filename]
Index: codecontainer.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axdebug/codecontainer.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** codecontainer.py 27 Nov 2008 03:53:25 -0000 1.6
--- codecontainer.py 27 Nov 2008 09:42:42 -0000 1.7
***************
*** 124,128 ****
if type==tokenize.NAME:
! if _keywords.has_key(token):
attr = axdebug.SOURCETEXT_ATTR_KEYWORD
elif type==tokenize.STRING:
--- 124,128 ----
if type==tokenize.NAME:
! if token in _keywords:
attr = axdebug.SOURCETEXT_ATTR_KEYWORD
elif type==tokenize.STRING:
|