;ò
íŒü?c           @   sg   d  Z  d k l Z d k l Z d g Z d e f d „  ƒ  YZ e d „ Z e	 d j o e ƒ  n d S(   sv   HTML 2.0 parser.

See the HTML 2.0 specification:
http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec_toc.html
(   s
   SGMLParser(   s   AS_ISs
   HTMLParserc           B   s'  t  Z d  Z d k l Z d d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d  „  Z" d! „  Z# d" „  Z$ d# „  Z% d$ „  Z& d% „  Z' d& „  Z( d' „  Z) d( „  Z* d) „  Z+ d* „  Z, d+ „  Z- d, „  Z. d- „  Z/ d. „  Z0 d/ „  Z1 d0 „  Z2 d1 „  Z3 d2 „  Z4 d3 „  Z5 d4 „  Z6 d5 „  Z7 d6 „  Z8 d7 „  Z9 d8 „  Z: d9 „  Z; d: „  Z< d; „  Z= d d< „ Z> d= „  Z? d> „  Z@ d? „  ZA d@ „  ZB dA „  ZC dB „  ZD dC „  ZE dD „  ZF dE „  ZG dF „  ZH dG „  ZI dH „  ZJ dI „  ZK dJ „  ZL dK „  ZM dL „  ZN dM „  ZO dN „  ZP dO „  ZQ dP „  ZR dQ „  ZS dR „  ZT dS „  ZU dT „  ZV dU „  ZW dV „  ZX dW „  ZY dX „  ZZ RS(Y   sÔ   This is the basic HTML parser class.

    It supports all entity names required by the HTML 2.0 specification
    RFC 1866.  It also defines handlers for all HTML 2.0 and many HTML 3.0
    and 3.2 elements.

    (   s
   entitydefsi    c         C   s   t  i |  | ƒ | |  _ d S(   s•   Creates an instance of the HTMLParser class.

        The formatter parameter is the formatter instance associated with
        the parser.

        N(   s
   SGMLParsers   __init__s   selfs   verboses	   formatter(   s   selfs	   formatters   verbose(    (    s$   /mit/python/lib/python2.3/htmllib.pys   __init__   s     c         C   sY   t  i |  ƒ t |  _ d |  _ t |  _ t |  _ t |  _ g  |  _	 d |  _
 g  |  _ d  S(   Ni    (   s
   SGMLParsers   resets   selfs   Nones   savedatas   isindexs   titles   bases   anchors
   anchorlists   nofills
   list_stack(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   reset"   s    							c         C   sV   |  i t j	 o |  i | |  _ n/ |  i o |  i i | ƒ n |  i i | ƒ d  S(   N(   s   selfs   savedatas   Nones   datas   nofills	   formatters   add_literal_datas   add_flowing_data(   s   selfs   data(    (    s$   /mit/python/lib/python2.3/htmllib.pys   handle_data2   s
    
c         C   s   d |  _ d S(   sê   Begins saving character data in a buffer instead of sending it
        to the formatter object.

        Retrieve the stored data via the save_end() method.  Use of the
        save_bgn() / save_end() pair may not be nested.

        s    N(   s   selfs   savedata(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   save_bgn=   s     c         C   s>   |  i } t |  _ |  i o d i | i ƒ  ƒ } n | Sd S(   sH  Ends buffering character data and returns all data saved since
        the preceding call to the save_bgn() method.

        If the nofill flag is false, whitespace is collapsed to single
        spaces.  A call to this method without a preceding call to the
        save_bgn() method will raise a TypeError exception.

        s    N(   s   selfs   savedatas   datas   Nones   nofills   joins   split(   s   selfs   data(    (    s$   /mit/python/lib/python2.3/htmllib.pys   save_endG   s     		c         C   s+   | |  _ |  i o |  i i | ƒ n d S(   s}  This method is called at the start of an anchor region.

        The arguments correspond to the attributes of the <A> tag with
        the same names.  The default implementation maintains a list of
        hyperlinks (defined by the HREF attribute for <A> tags) within
        the document.  The list of hyperlinks is available as the data
        attribute anchorlist.

        N(   s   hrefs   selfs   anchors
   anchorlists   append(   s   selfs   hrefs   names   type(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   anchor_bgnX   s    	 	
c         C   s5   |  i o' |  i d t |  i ƒ ƒ t |  _ n d S(   sØ   This method is called at the end of an anchor region.

        The default implementation adds a textual footnote marker using an
        index into the list of hyperlinks created by the anchor_bgn()method.

        s   [%d]N(   s   selfs   anchors   handle_datas   lens
   anchorlists   None(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   anchor_endf   s     
c         G   s   |  i | ƒ d S(   s–   This method is called to handle images.

        The default implementation simply passes the alt value to the
        handle_data() method.

        N(   s   selfs   handle_datas   alt(   s   selfs   srcs   alts   args(    (    s$   /mit/python/lib/python2.3/htmllib.pys   handle_images   s     c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_html~   s    c         C   s   d  S(   N(    (   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_html   s    c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_head   s    c         C   s   d  S(   N(    (   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_head‚   s    c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_body„   s    c         C   s   d  S(   N(    (   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_body…   s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   save_bgn(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_title‰   s    c         C   s   |  i ƒ  |  _ d  S(   N(   s   selfs   save_ends   title(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   end_titleŒ   s    c         C   s5   x. | D]& \ } } | d j o | |  _ q q Wd  S(   Ns   href(   s   attrss   as   vs   selfs   base(   s   selfs   attrss   as   v(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_base   s     c         C   s   d |  _ d  S(   Ni   (   s   selfs   isindex(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   do_isindex”   s    c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_link—   s    c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_metaš   s    c         C   s   d  S(   N(    (   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   do_nextid   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h1i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h1¤   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h1¨   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h2i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h2¬   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h2°   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h3i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h3´   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h3¸   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h4i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h4¼   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h4À   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h5i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h5Ä   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h5È   s    c         C   s0   |  i i d ƒ |  i i d d d d f ƒ d  S(   Ni   s   h6i    (   s   selfs	   formatters   end_paragraphs	   push_font(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_h6Ì   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_h6Ð   s    c         C   s   |  i i d ƒ d  S(   Ni   (   s   selfs	   formatters   end_paragraph(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_pÖ   s    c         C   s@   |  i i d ƒ |  i i t t t d f ƒ |  i d |  _ d  S(   Ni   (   s   selfs	   formatters   end_paragraphs	   push_fonts   AS_ISs   nofill(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   start_preÙ   s    c         C   s:   |  i i d ƒ |  i i ƒ  t d |  i d ƒ |  _ d  S(   Ni   i    (   s   selfs	   formatters   end_paragraphs   pop_fonts   maxs   nofill(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_preÞ   s    c         C   s   |  i | ƒ |  i d ƒ d  S(   Ns   xmp(   s   selfs	   start_pres   attrss
   setliteral(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   start_xmpã   s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_pre(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_xmpç   s    c         C   s   |  i | ƒ |  i d ƒ d  S(   Ns   listing(   s   selfs	   start_pres   attrss
   setliteral(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_listingê   s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_pre(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_listingî   s    c         C   s0   |  i i d ƒ |  i i t d t t f ƒ d  S(   Ni    i   (   s   selfs	   formatters   end_paragraphs	   push_fonts   AS_IS(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_addressñ   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni    (   s   selfs	   formatters   end_paragraphs   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_addressõ   s    c         C   s$   |  i i d ƒ |  i i d ƒ d  S(   Ni   s
   blockquote(   s   selfs	   formatters   end_paragraphs   push_margin(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_blockquoteù   s    c         C   s!   |  i i d ƒ |  i i ƒ  d  S(   Ni   (   s   selfs	   formatters   end_paragraphs
   pop_margin(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_blockquoteý   s    c         C   sA   |  i i |  i ƒ |  i i d ƒ |  i i d d d g ƒ d  S(   Ns   uls   *i    (   s   selfs	   formatters   end_paragraphs
   list_stacks   push_margins   append(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_ul  s    c         C   s=   |  i o |  i d =n |  i i |  i ƒ |  i i ƒ  d  S(   Niÿÿÿÿ(   s   selfs
   list_stacks	   formatters   end_paragraphs
   pop_margin(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_ul  s    
 c         C   ss   |  i i d ƒ |  i o0 |  i d \ } } } } | d | d <} n d d f \ } } |  i i | | ƒ d  S(   Ni    iÿÿÿÿi   i   s   *(	   s   selfs	   formatters   end_paragraphs
   list_stacks   dummys   labels   counters   tops   add_label_data(   s   selfs   attrss   dummys   tops   counters   label(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_li  s    
c         C   s–   |  i i |  i ƒ |  i i d ƒ d } xL | D]D \ } } | d j o+ t	 | ƒ d j o | d } n | } q1 q1 W|  i i
 d | d g ƒ d  S(   Ns   ols   1.s   typei   s   .i    (   s   selfs	   formatters   end_paragraphs
   list_stacks   push_margins   labels   attrss   as   vs   lens   append(   s   selfs   attrss   as   labels   v(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_ol  s      c         C   s=   |  i o |  i d =n |  i i |  i ƒ |  i i ƒ  d  S(   Niÿÿÿÿ(   s   selfs
   list_stacks	   formatters   end_paragraphs
   pop_margin(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_ol   s    
 c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_uls   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_menu%  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_ul(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_menu(  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_uls   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   start_dir+  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_ul(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_dir.  s    c         C   s-   |  i i d ƒ |  i i d d d g ƒ d  S(   Ni   s   dls    i    (   s   selfs	   formatters   end_paragraphs
   list_stacks   append(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_dl1  s    c         C   s)   |  i d ƒ |  i o |  i d =n d  S(   Ni   iÿÿÿÿ(   s   selfs   ddpops
   list_stack(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_dl5  s    
 c         C   s   |  i ƒ  d  S(   N(   s   selfs   ddpop(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_dt9  s    c         C   s7   |  i ƒ  |  i i d ƒ |  i i d d d g ƒ d  S(   Ns   dds    i    (   s   selfs   ddpops	   formatters   push_margins
   list_stacks   append(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_dd<  s    
c         C   sU   |  i i | ƒ |  i o7 |  i d d d j o |  i d =|  i i ƒ  qQ n d  S(   Niÿÿÿÿi    s   dd(   s   selfs	   formatters   end_paragraphs   bls
   list_stacks
   pop_margin(   s   selfs   bl(    (    s$   /mit/python/lib/python2.3/htmllib.pys   ddpopA  s
    

c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_is   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_citeL  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_i(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_citeM  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_tts   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_codeO  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_tt(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_codeP  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_is   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_emR  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_i(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_emS  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_tts   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   start_kbdU  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_tt(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_kbdV  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_tts   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   start_sampX  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_tt(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_sampY  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_bs   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_strong[  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_b(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys
   end_strong\  s    c         C   s   |  i | ƒ d  S(   N(   s   selfs   start_is   attrs(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys	   start_var^  s    c         C   s   |  i ƒ  d  S(   N(   s   selfs   end_i(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_var_  s    c         C   s    |  i i t d t t f ƒ d  S(   Ni   (   s   selfs	   formatters	   push_fonts   AS_IS(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_ic  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs	   formatters   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_ie  s    c         C   s    |  i i t t d t f ƒ d  S(   Ni   (   s   selfs	   formatters	   push_fonts   AS_IS(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_bh  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs	   formatters   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_bj  s    c         C   s    |  i i t t t d f ƒ d  S(   Ni   (   s   selfs	   formatters	   push_fonts   AS_IS(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_ttm  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs	   formatters   pop_font(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_tto  s    c         C   s—   d } d } d } xk | D]c \ } } | i ƒ  } | d j o
 | } n | d j o
 | } n | d j o | i ƒ  } q q W|  i	 | | | ƒ d  S(   Ns    s   hrefs   names   type(
   s   hrefs   names   types   attrss   attrnames   values   strips   lowers   selfs
   anchor_bgn(   s   selfs   attrss   names   values   attrnames   hrefs   type(    (    s$   /mit/python/lib/python2.3/htmllib.pys   start_ar  s     

c         C   s   |  i ƒ  d  S(   N(   s   selfs
   anchor_end(   s   self(    (    s$   /mit/python/lib/python2.3/htmllib.pys   end_a€  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs	   formatters   add_line_break(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_br…  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs	   formatters   add_hor_rule(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_hrŠ  s    c   
      C   s%  d } d } d } d } d } d }	 xÞ | D]Ö \ } } | d j o
 | } n | d j o
 | } n | d j o
 | } n | d j o
 | } n | d j o* y t	 | ƒ } WqÊ t
 j
 o qÊ Xn | d	 j o* y t	 | ƒ }	 Wqt
 j
 o qXq+ q+ W|  i | | | | | |	 ƒ d  S(
   Ns    s   (image)i    s   aligns   alts   ismaps   srcs   widths   height(   s   aligns   alts   ismaps   srcs   widths   heights   attrss   attrnames   values   ints
   ValueErrors   selfs   handle_image(
   s   selfs   attrss   srcs   aligns   values   ismaps   attrnames   widths   alts   height(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_img  s6     



  	  c         C   s   |  i | ƒ |  i ƒ  d  S(   N(   s   selfs	   start_pres   attrss   setnomoretags(   s   selfs   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   do_plaintext©  s    c         C   s   d  S(   N(    (   s   selfs   tags   attrs(    (    s$   /mit/python/lib/python2.3/htmllib.pys   unknown_starttag¯  s    c         C   s   d  S(   N(    (   s   selfs   tag(    (    s$   /mit/python/lib/python2.3/htmllib.pys   unknown_endtag²  s    ([   s   __name__s
   __module__s   __doc__s   htmlentitydefss
   entitydefss   __init__s   resets   handle_datas   save_bgns   save_ends
   anchor_bgns
   anchor_ends   handle_images
   start_htmls   end_htmls
   start_heads   end_heads
   start_bodys   end_bodys   start_titles	   end_titles   do_bases
   do_isindexs   do_links   do_metas	   do_nextids   start_h1s   end_h1s   start_h2s   end_h2s   start_h3s   end_h3s   start_h4s   end_h4s   start_h5s   end_h5s   start_h6s   end_h6s   do_ps	   start_pres   end_pres	   start_xmps   end_xmps   start_listings   end_listings   start_addresss   end_addresss   start_blockquotes   end_blockquotes   start_uls   end_uls   do_lis   start_ols   end_ols
   start_menus   end_menus	   start_dirs   end_dirs   start_dls   end_dls   do_dts   do_dds   ddpops
   start_cites   end_cites
   start_codes   end_codes   start_ems   end_ems	   start_kbds   end_kbds
   start_samps   end_samps   start_strongs
   end_strongs	   start_vars   end_vars   start_is   end_is   start_bs   end_bs   start_tts   end_tts   start_as   end_as   do_brs   do_hrs   do_imgs   do_plaintexts   unknown_starttags   unknown_endtag(    (    (    s$   /mit/python/lib/python2.3/htmllib.pys
   HTMLParser   s°    
			
																																													
																																				c   	      C   sK  d  k  } d  k } |  o | i d }  n |  o |  d d j } | o |  d =n |  o |  d } n d } | d j o | i } nF y t | d ƒ } Wn/ t	 j
 o# } | Gd G| GH| i d ƒ n X| i ƒ  } | | i j	 o | i ƒ  n | o | i ƒ  } n | i | i ƒ  ƒ } t | ƒ } | i | ƒ | i ƒ  d  S(   Ni   i    s   -ss	   test.htmls   -s   rs   :(   s   syss	   formatters   argss   argvs   silents   files   stdins   fs   opens   IOErrors   msgs   exits   reads   datas   closes   NullFormatters   AbstractFormatters
   DumbWriters
   HTMLParsers   ps   feed(	   s   argss   silents   fs   datas   syss   ps   files   msgs	   formatter(    (    s$   /mit/python/lib/python2.3/htmllib.pys   test¶  s2    s   __main__N(
   s   __doc__s   sgmllibs
   SGMLParsers	   formatters   AS_ISs   __all__s
   HTMLParsers   Nones   tests   __name__(   s
   SGMLParsers   __all__s
   HTMLParsers   tests   AS_IS(    (    s$   /mit/python/lib/python2.3/htmllib.pys   ?   s   	ÿ ª'