Edgewall Software

Changeset 517 for trunk/genshi/input.py


Ignore:
Timestamp:
Mar 22, 2007, 1:45:18 PM (17 years ago)
Author:
cmlenz
Message:

Try to use proper reStructuredText for docstrings throughout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r515 r517  
    1212# history and logs, available at http://genshi.edgewall.org/log/.
    1313
     14"""Support for constructing markup streams from files, strings, or other
     15sources.
     16"""
     17
    1418from itertools import chain
    1519from xml.parsers import expat
     
    2832
    2933__all__ = ['ET', 'ParseError', 'XMLParser', 'XML', 'HTMLParser', 'HTML']
     34__docformat__ = 'restructuredtext en'
    3035
    3136def ET(element):
     
    8287        """Initialize the parser for the given XML input.
    8388       
    84         @param source: the XML text as a file-like object
    85         @param filename: the name of the file, if appropriate
    86         @param encoding: the encoding of the file; if not specified, the
    87             encoding is assumed to be ASCII, UTF-8, or UTF-16, or whatever the
    88             encoding specified in the XML declaration (if any)
     89        :param source: the XML text as a file-like object
     90        :param filename: the name of the file, if appropriate
     91        :param encoding: the encoding of the file; if not specified, the
     92                         encoding is assumed to be ASCII, UTF-8, or UTF-16, or
     93                         whatever the encoding specified in the XML declaration
     94                         (if any)
    8995        """
    9096        self.source = source
     
    260266        """Initialize the parser for the given HTML input.
    261267       
    262         @param source: the HTML text as a file-like object
    263         @param filename: the name of the file, if known
    264         @param filename: encoding of the file; ignored if the input is unicode
     268        :param source: the HTML text as a file-like object
     269        :param filename: the name of the file, if known
     270        :param filename: encoding of the file; ignored if the input is unicode
    265271        """
    266272        html.HTMLParser.__init__(self)
Note: See TracChangeset for help on using the changeset viewer.