| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/textproc/py-docutils/work-py39/docutils-0.17.1/test/ |
Upload File : |
# -*- 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()