[pywin32-checkins] pywin32/com/win32com/client genpy.py,1.62,1.63
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-04 07:03:44
|
Update of /cvsroot/pywin32/pywin32/com/win32com/client In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2796/com/win32com/client Modified Files: genpy.py Log Message: fix recent regression; correct check for _enum_ in self.__dict__ Index: genpy.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/genpy.py,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** genpy.py 4 Dec 2008 05:22:38 -0000 1.62 --- genpy.py 4 Dec 2008 07:03:39 -0000 1.63 *************** *** 513,517 **** print >> stream, '\tdef __getitem__(self, index):' print >> stream, '\t\t"Allow this class to be accessed as a collection"' ! print >> stream, "\t\tif '_enum' not in self.__dict__:" print >> stream, "\t\t\tself.__dict__['_enum_'] = self._NewEnum()" print >> stream, "\t\treturn self._enum_.__getitem__(index)" --- 513,517 ---- print >> stream, '\tdef __getitem__(self, index):' print >> stream, '\t\t"Allow this class to be accessed as a collection"' ! print >> stream, "\t\tif '_enum_' not in self.__dict__:" print >> stream, "\t\t\tself.__dict__['_enum_'] = self._NewEnum()" print >> stream, "\t\treturn self._enum_.__getitem__(index)" |