Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31596
Modified Files:
build.py
Log Message:
Mangle member names that would otherwise cause Python to consider them
private (ie, attributes starting with '__')
Index: build.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/build.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** build.py 25 Nov 2003 10:43:11 -0000 1.25
--- build.py 31 Mar 2004 23:27:01 -0000 1.26
***************
*** 502,506 ****
# if is_global is True, then the name is a global variable that may
# overwrite a builtin - eg, "None"
! if className[:2]=='__' and className[-2:]!='__':
return className[1:] + '_' # First '_' moved at the end.
elif iskeyword(className): # all keywords are lower case
--- 502,506 ----
# if is_global is True, then the name is a global variable that may
# overwrite a builtin - eg, "None"
! if className[:2]=='__':
return className[1:] + '_' # First '_' moved at the end.
elif iskeyword(className): # all keywords are lower case
|