ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/markupbase.pyc |
Ńň
oÄMc @ s} d Z d d k Z e i d i Z e i d i Z e i d Z e i d Z e i d Z [ d d
d YZ d S( sü Shared support for scanning document type declarations in HTML and XHTML.
This module is used as a foundation for the HTMLParser and sgmllib
modules (indirectly, for htmllib as well). It has no documented
public API and should not be used directly.
i˙˙˙˙Ns [a-zA-Z][-_.a-zA-Z0-9]*\s*s (\'[^\']*\'|"[^"]*")\s*s --\s*>s ]\s*]\s*>s ]\s*>t
ParserBasec B sĄ e Z d Z d Z d Z d Z d Z d Z d Z d Z d d Z
d d
Z d Z d Z
d
Z d Z d Z d Z d Z RS( si Parser base class which provides some common support methods used
by the SGML/HTML and XHTML parsers.c C s$ | i t j o t d n d S( Ns( markupbase.ParserBase must be subclassed( t __class__R t RuntimeError( t self( ( s /usr/lib/python2.6/markupbase.pyt __init__ s c C s t d d S( Ns. subclasses of ParserBase must override error()( t NotImplementedError( R t message( ( s /usr/lib/python2.6/markupbase.pyt error! s c C s d | _ d | _ d S( Ni i ( t linenot offset( R ( ( s /usr/lib/python2.6/markupbase.pyt reset% s c C s | i | i f S( s&