[pywin32-checkins] pywin32/com/win32com/client build.py,1.25,1.26
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-03-31 23:38:53
|
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 |