Update of /cvsroot/pywin32/pywin32/com/win32comext/axscript/client
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3958/com/win32comext/axscript/client
Modified Files:
framework.py pyscript.py
Log Message:
modernize syntax: remove use of apply() from most of the tree
Index: pyscript.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/client/pyscript.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** pyscript.py 26 Nov 2008 08:39:33 -0000 1.13
--- pyscript.py 27 Nov 2008 05:58:17 -0000 1.14
***************
*** 30,34 ****
def debug_attr_print(*args):
if debugging_attr:
! apply(trace, args)
def ExpandTabs(text):
--- 30,34 ----
def debug_attr_print(*args):
if debugging_attr:
! trace(*args)
def ExpandTabs(text):
Index: framework.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/axscript/client/framework.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** framework.py 7 May 2007 02:27:44 -0000 1.25
--- framework.py 27 Nov 2008 05:58:17 -0000 1.26
***************
*** 46,50 ****
# roll on 1.6 :-)
# return prof.runcall(fn, *args)
! return apply(prof.runcall, (fn,) + args)
finally:
import pstats
--- 46,50 ----
# roll on 1.6 :-)
# return prof.runcall(fn, *args)
! return prof.runcall(*(fn,) + args)
finally:
import pstats
***************
*** 841,847 ****
return self.debugManager.adb.runcall(fn, *args)
else:
! return apply(fn, args)
else:
! return apply(fn, args)
def ApplyInScriptedSection(self, codeBlock, fn, args):
--- 841,847 ----
return self.debugManager.adb.runcall(fn, *args)
else:
! return fn(*args)
else:
! return fn(*args)
def ApplyInScriptedSection(self, codeBlock, fn, args):
|