diff --git a/mwparserfromhell/nodes/tag.py b/mwparserfromhell/nodes/tag.py index 80b8a88..06f43d0 100644 --- a/mwparserfromhell/nodes/tag.py +++ b/mwparserfromhell/nodes/tag.py @@ -22,7 +22,7 @@ from __future__ import unicode_literals -from . import Node, Text +from . import Node from .extras import Attribute from ..compat import str from ..definitions import is_visible diff --git a/mwparserfromhell/parser/tokenizer.py b/mwparserfromhell/parser/tokenizer.py index 6ab549a..1061b9f 100644 --- a/mwparserfromhell/parser/tokenizer.py +++ b/mwparserfromhell/parser/tokenizer.py @@ -35,6 +35,7 @@ class BadRoute(Exception): """Raised internally when the current tokenization route is invalid.""" def __init__(self, context=0): + super(BadRoute, self).__init__() self.context = context