Commit 46dad6a2 authored by Guido van Rossum's avatar Guido van Rossum

Add parseString() API.

parent 71fe057c
......@@ -166,6 +166,9 @@ class HTMLTALParser(SGMLParser):
f = open(file)
data = f.read()
f.close()
self.parseString(data)
def parseString(self, data):
self.feed(data)
self.close()
while self.tagstack:
......
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