@@ -20,8 +20,8 @@ | |||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
# SOFTWARE. | # SOFTWARE. | ||||
from mwparserfromhell.parser.utils import parse_anything | |||||
from mwparserfromhell.string_mixin import StringMixIn | from mwparserfromhell.string_mixin import StringMixIn | ||||
from mwparserfromhell.utils import parse_anything | |||||
__all__ = ["Parameter"] | __all__ = ["Parameter"] | ||||
@@ -22,7 +22,7 @@ | |||||
from mwparserfromhell.nodes import Node | from mwparserfromhell.nodes import Node | ||||
from mwparserfromhell.nodes.extras import Parameter | from mwparserfromhell.nodes.extras import Parameter | ||||
from mwparserfromhell.parser.utils import parse_anything | |||||
from mwparserfromhell.utils import parse_anything | |||||
__all__ = ["Template"] | __all__ = ["Template"] | ||||
@@ -22,9 +22,9 @@ | |||||
import mwparserfromhell | import mwparserfromhell | ||||
from mwparserfromhell.nodes import Node | from mwparserfromhell.nodes import Node | ||||
from mwparserfromhell.wikicode import Wikicode | |||||
def parse_anything(value): | def parse_anything(value): | ||||
Wikicode = mwparserfromhell.wikicode.Wikicode | |||||
if isinstance(value, Wikicode): | if isinstance(value, Wikicode): | ||||
return value | return value | ||||
if isinstance(value, Node): | if isinstance(value, Node): |
@@ -23,8 +23,8 @@ | |||||
import re | import re | ||||
from mwparserfromhell.nodes import HTMLEntity, Node, Template, Text | from mwparserfromhell.nodes import HTMLEntity, Node, Template, Text | ||||
from mwparserfromhell.parser.utils import parse_anything | |||||
from mwparserfromhell.string_mixin import StringMixIn | from mwparserfromhell.string_mixin import StringMixIn | ||||
from mwparserfromhell.utils import parse_anything | |||||
__all__ = ["Wikicode"] | __all__ = ["Wikicode"] | ||||