|
@@ -4,7 +4,10 @@ from difflib import unified_diff
|
|
|
|
|
|
|
|
|
|
class FortuneHTMLParser(HTMLParser):
|
|
class FortuneHTMLParser(HTMLParser):
|
|
- body = []
|
|
|
|
|
|
+
|
|
|
|
+ def __init__(self):
|
|
|
|
+ HTMLParser.__init__(self)
|
|
|
|
+ self.body = []
|
|
|
|
|
|
valid_fortune = '''<!doctype html><html>
|
|
valid_fortune = '''<!doctype html><html>
|
|
<head><title>Fortunes</title></head>
|
|
<head><title>Fortunes</title></head>
|