Update of /cvsroot/pywin32/pywin32/com/win32comext/axscript/server
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/com/win32comext/axscript/server
Modified Files:
axsite.py
Log Message:
modernizations: replace most remaining has_key() calls with 'in' statements.
Index: axsite.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/server/axsite.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** axsite.py 1 Jun 2002 02:37:43 -0000 1.2
--- axsite.py 27 Nov 2008 09:42:42 -0000 1.3
***************
*** 101,105 ****
def GetItemInfo(self, name, returnMask):
# name = string.lower(name)
! if not self.objModel.has_key(name):
raise exception.Exception(scode=winerror.TYPE_E_ELEMENTNOTFOUND, desc='item not found')
--- 101,105 ----
def GetItemInfo(self, name, returnMask):
# name = string.lower(name)
! if name not in self.objModel:
raise exception.Exception(scode=winerror.TYPE_E_ELEMENTNOTFOUND, desc='item not found')
|