Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24496/pythonwin/pywin/mfc
Modified Files:
object.py
Log Message:
Don't delegate any special __ attributes to the win32ui type.
Index: object.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/mfc/object.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** object.py 14 Nov 2008 00:22:25 -0000 1.5
--- object.py 9 Dec 2008 12:52:41 -0000 1.6
***************
*** 12,16 ****
def __getattr__(self, attr): # Make this object look like the underlying win32ui one.
# During cleanup __dict__ is not available, causing recursive death.
! if attr != '__dict__':
try:
o = self.__dict__['_obj_']
--- 12,16 ----
def __getattr__(self, attr): # Make this object look like the underlying win32ui one.
# During cleanup __dict__ is not available, causing recursive death.
! if not attr.startswith('__'):
try:
o = self.__dict__['_obj_']
|