Changeset 517 for trunk/genshi/input.py
- Timestamp:
- Mar 22, 2007, 1:45:18 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/genshi/input.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/genshi/input.py
r515 r517 12 12 # history and logs, available at http://genshi.edgewall.org/log/. 13 13 14 """Support for constructing markup streams from files, strings, or other 15 sources. 16 """ 17 14 18 from itertools import chain 15 19 from xml.parsers import expat … … 28 32 29 33 __all__ = ['ET', 'ParseError', 'XMLParser', 'XML', 'HTMLParser', 'HTML'] 34 __docformat__ = 'restructuredtext en' 30 35 31 36 def ET(element): … … 82 87 """Initialize the parser for the given XML input. 83 88 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) 89 95 """ 90 96 self.source = source … … 260 266 """Initialize the parser for the given HTML input. 261 267 262 @param source: the HTML text as a file-like object263 @param filename: the name of the file, if known264 @param filename: encoding of the file; ignored if the input is unicode268 :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 265 271 """ 266 272 html.HTMLParser.__init__(self)
Note: See TracChangeset
for help on using the changeset viewer.
