You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
594 B

# -*- coding: utf-8 -*-
# $Id: local-parser.py 7504 2012-08-27 07:55:20Z grubert $
# Authors: Engelbert Gruber <grubert@users.sourceforge.net>
# Toshio Kuratomi <toshio@fedoraproject.org>
# Copyright: This module is put into the public domain.
"""
mini-reader to test get_reader_class with local reader
"""
from docutils import parsers
class Parser(parsers.Parser):
supported = ('dummy',)
"""Formats this reader supports."""
def parser(self, inputstring, document):
self.setup_parse(inputstring, document)
document = dict()
self.finish_parse()