Update of /cvsroot/pywin32/pywin32/win32/Lib
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/win32/Lib
Modified Files:
win32rcparser.py
Log Message:
modernizations: replace most remaining has_key() calls with 'in' statements.
Index: win32rcparser.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32rcparser.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** win32rcparser.py 27 Nov 2008 09:33:22 -0000 1.6
--- win32rcparser.py 27 Nov 2008 09:42:42 -0000 1.7
***************
*** 214,218 ****
i = int(lex.get_token())
self.ids[n] = i
! if self.names.has_key(i):
# Dupe ID really isn't a problem - most consumers
# want to go from name->id, and this is OK.
--- 214,218 ----
i = int(lex.get_token())
self.ids[n] = i
! if i in self.names:
# Dupe ID really isn't a problem - most consumers
# want to go from name->id, and this is OK.
|