1.1 --- a/moinformat/__init__.py Thu Jul 26 20:09:48 2018 +0200
1.2 +++ b/moinformat/__init__.py Thu Jul 26 20:30:14 2018 +0200
1.3 @@ -20,37 +20,7 @@
1.4 """
1.5
1.6 from moinformat.links import make_linker
1.7 -from moinformat.parsers import parse, parsers as all_parsers
1.8 -from moinformat.serialisers import serialise, serialisers as all_serialisers
1.9 -
1.10 -def get_parser(name="moin"):
1.11 -
1.12 - "Return the parser class supporting the format with the given 'name'."
1.13 -
1.14 - return all_parsers[name]
1.15 -
1.16 -def make_parser(name="moin"):
1.17 -
1.18 - "Return a parser instance for the format with the given 'name'."
1.19 -
1.20 - return get_parser(name)(all_parsers)
1.21 -
1.22 -def get_serialiser(name):
1.23 -
1.24 - "Return the main serialiser class for the format having the given 'name'."
1.25 -
1.26 - return all_serialisers["%s.moin" % name]
1.27 -
1.28 -def make_serialiser(name, linker=None):
1.29 -
1.30 - """
1.31 - Return a serialiser instance for the format having the given 'name'.
1.32 -
1.33 - The optional 'linker' is used to control which linking scheme is used with
1.34 - the serialiser, with the default having the same name as the serialiser.
1.35 - """
1.36 -
1.37 - linker = linker or make_linker(name, "")
1.38 - return get_serialiser(name)(formats=all_serialisers, linker=linker)
1.39 +from moinformat.parsers import get_parser, make_parser, parse
1.40 +from moinformat.serialisers import get_serialiser, make_serialiser, serialise
1.41
1.42 # vim: tabstop=4 expandtab shiftwidth=4