Update of /cvsroot/pywin32/pywin32/com/win32com/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13456
Modified Files:
policySemantics.py
Log Message:
replace reduce/lambda with sum() to make it py3k friendly.
Index: policySemantics.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/test/policySemantics.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** policySemantics.py 10 Nov 2003 00:49:29 -0000 1.4
--- policySemantics.py 26 Nov 2008 01:16:13 -0000 1.5
***************
*** 23,27 ****
def _Evaluate(self):
# return the sum
! return reduce(lambda a,b: a+b, self.list, 0)
def In(self, value):
return value in self.list
--- 23,27 ----
def _Evaluate(self):
# return the sum
! return sum(self.list)
def In(self, value):
return value in self.list
|