Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory sc8-pr-cvs1:/tmp/cvs-serv16842/Pythonwin/pywin/scintilla
Modified Files:
view.py
Log Message:
If a file had a method named "self", auto-complete would get upset.
Index: view.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/view.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** view.py 10 Nov 2003 04:38:56 -0000 1.22
--- view.py 20 Jan 2004 22:15:15 -0000 1.23
***************
*** 477,480 ****
--- 477,483 ----
# Or maybe we don't need the superclass methods at all ?
def _UpdateWithClassMethods(self,dict,classinfo):
+ if not hasattr(classinfo,"methods"):
+ # No 'methods' - probably not what we think it is.
+ return
dict.update(classinfo.methods)
for super in classinfo.super:
|