[pywin32-checkins] pywin32/com/win32com/test testMSOfficeEvents.py, 1.5, 1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-27 09:42:48
|
Update of /cvsroot/pywin32/pywin32/com/win32com/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18926/com/win32com/test Modified Files: testMSOfficeEvents.py Log Message: modernizations: replace most remaining has_key() calls with 'in' statements. Index: testMSOfficeEvents.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/testMSOfficeEvents.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** testMSOfficeEvents.py 26 Nov 2008 08:52:32 -0000 1.5 --- testMSOfficeEvents.py 27 Nov 2008 09:42:41 -0000 1.6 *************** *** 99,103 **** rc = 1 for e in events: ! if not o.seen_events.has_key(e): print "ERROR: Expected event did not trigger", e rc = 0 --- 99,103 ---- rc = 1 for e in events: ! if e not in o.seen_events: print "ERROR: Expected event did not trigger", e rc = 0 |