Commits

Amit Aronovitch committed 6b0f5b4

Fixed broken example extend_parser.py

Comments (0)

Files changed (1)

examples/extend_parser.py

     }
 
 class MyWikiPageWiki(hatta.WikiPageWiki):
-    parser = MyWikiParser
+    
+    def __init__(self, *args, **kw):
+        super(MyWikiPageWiki, self).__init__(*args, **kw)
+        self.parser = MyWikiParser
 
 if __name__=='__main__':
     config = hatta.read_config()