Commit cf64b682 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove _ in call to a string's split() method.

A little overzealous in the last checkin.
parent 154154ed
......@@ -27,7 +27,7 @@ class HTMLWordSplitter:
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__":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment