Update of /cvsroot/pywin32/pywin32/com/win32com/client
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26202/com/win32com/client
Modified Files:
build.py
Log Message:
don't pass more arg names than we have arg infos for
Index: build.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/client/build.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** build.py 26 Jan 2009 00:47:31 -0000 1.40
--- build.py 18 Jun 2009 10:41:05 -0000 1.41
***************
*** 490,496 ****
names = list(names)
while None in names:
! i = names.index(None)
! names[i] = "arg%d" % (i,)
! names = list(map(MakePublicAttributeName, names[1:]))
name_num = 0
while len(names) < numArgs:
--- 490,499 ----
names = list(names)
while None in names:
! i = names.index(None)
! names[i] = "arg%d" % (i,)
! # We've seen 'source safe' libraries offer the name of 'ret' params in
! # 'names' - although we can't reproduce this, it would be insane to offer
! # more args than we have arg infos for - hence the upper limit on names...
! names = list(map(MakePublicAttributeName, names[1:(numArgs + 1)]))
name_num = 0
while len(names) < numArgs:
|