[pywin32-checkins] pywin32/Pythonwin/pywin/mfc dialog.py,1.6,1.7
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-26 08:39:38
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18639/Pythonwin/pywin/mfc Modified Files: dialog.py Log Message: various syntax modernizations Index: dialog.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc/dialog.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dialog.py 26 Nov 2008 01:30:11 -0000 1.6 --- dialog.py 26 Nov 2008 08:39:33 -0000 1.7 *************** *** 62,66 **** # Make a dialog object look like a dictionary for the DDX support def __nonzero__(self): ! return 1 def __len__(self): return len(self.data) def __getitem__(self, key): return self.data[key] --- 62,66 ---- # Make a dialog object look like a dictionary for the DDX support def __nonzero__(self): ! return True def __len__(self): return len(self.data) def __getitem__(self, key): return self.data[key] |