[Zope-CVS] CVS: Products/ZCTextIndex/tests - testLexicon.py:1.1.2.8

Barry Warsaw barry@wooz.org
Thu, 2 May 2002 14:56:36 -0400


Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv18342/tests

Modified Files:
      Tag: TextIndexDS9-branch
	testLexicon.py 
Log Message:
Change all the interfaces from using __call__() to using process().
__call__()'s are too expensive and too cute.


=== Products/ZCTextIndex/tests/testLexicon.py 1.1.2.7 => 1.1.2.8 ===
         self.__toword = toword
 
-    def __call__(self, seq):
+    def process(self, seq):
         res = []
         for term in seq:
             if term == self.__fromword:
@@ -42,7 +42,7 @@
     def __init__(self, revword):
         self.__revword = revword
 
-    def __call__(self, seq):
+    def process(self, seq):
         res = []
         for term in seq:
             if term == self.__revword:
@@ -57,7 +57,7 @@
     def __init__(self, stopdict={}):
         self.__stopdict = stopdict
 
-    def __call__(self, seq):
+    def process(self, seq):
         res = []
         for term in seq:
             if self.__stopdict.get(term):