[Zope-CVS] CVS: Products/ZCTextIndex - HTMLSplitter.py:1.3

Jeremy Hylton jeremy@zope.com
Tue, 14 May 2002 16:44:03 -0400


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

Modified Files:
	HTMLSplitter.py 
Log Message:
Use underscore for internal methods


=== Products/ZCTextIndex/HTMLSplitter.py 1.2 => 1.3 ===
         splat = []
         for t in text:
-            splat += self.split(t)
+            splat += self._split(t)
         return splat    
 
-    def split(self, text):    
+    def _split(self, text):    
         text = text.lower()
         remove = ["<[^>]*>",
                   "&[A-Za-z]+;",
@@ -27,7 +27,7 @@
         for pat in remove:
             text = re.sub(pat, " ", text)
         rx = re.compile("[A-Za-z]")
-        return [word for word in text.split()
+        return [word for word in text._split()
                 if len(word) > 1 and rx.search(word)]
 
 if __name__ == "__main__":