-í
ì¶<c       s«    d  Z    d k l Z  d k l Z l Z  d k l Z l Z l	 Z	 l
 Z
 l Z  e   d  Z # e   d  Z 6 d g Z 9 d Z : e o ; d k Z n = d k Z d k Z d k Z > e i i d	  o  ? e i e i d	 d
  Z n @ [ B d Z C e i d  d j o e i i e  o% D e i e i i e  d
  Z n G g  d  Z a e i d  d j o b d   Z n h d   Z l [ d S(   sÛ  Simple API for XML (SAX) implementation for Python.

This module provides an implementation of the SAX 2 interface;
information about the Java version of the interface can be found at
http://www.megginson.com/SAX/.  The Python version of the interface is
documented at <...>.

This package contains the following modules:

handler -- Base classes and constants which define the SAX 2 API for
           the 'client-side' of SAX for Python.

saxutils -- Implementation of the convenience classes commonly used to
            work with SAX.

xmlreader -- Base classes and constants which define the SAX 2 API for
             the parsers used with SAX for Python.

expatreader -- Driver that allows use of the Expat parser with SAX.
(   s   InputSource(   s   ContentHandlers   ErrorHandler(   s   SAXExceptions   SAXNotRecognizedExceptions   SAXParseExceptions   SAXNotSupportedExceptions   SAXReaderNotAvailablec    sC     t    }  | i |    | i |  ! | i |   d  S(   N(   s   make_parsers   parsers   setContentHandlers   handlers   setErrorHandlers   errorHandlers   parses   source(   s   sources   handlers   errorHandlers   parser(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   parse s   c    sÅ   # $ y % d k  l } Wn& & t j
 o ' d k l } n X) | t j o * t   } n + t   } , | i |  - | i
 |  / t   } 0 | i | |    1 | i |  d  S(   N(   s   StringIO(   s	   cStringIOs   StringIOs   ImportErrors   errorHandlers   Nones   ErrorHandlers   make_parsers   parsers   setContentHandlers   handlers   setErrorHandlers   InputSources   inpsrcs   setByteStreams   strings   parse(   s   strings   handlers   errorHandlers   StringIOs   parsers   inpsrc(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   parseString# s   s   xml.sax.expatreaderi    Ns   PY_SAX_PARSERs   ,s   python.xml.sax.parseri   s   javac    sª   G M O x |  t DO ]y } P y Q t |  SWn\ R t j
 o5 } S d k } T | i i |  o
 W   n n X t	 j
 o
 [ n Xq W] t	 d t
   d S(   s&  Creates and returns a SAX parser.

    Creates the first parser it is able to instantiate of the ones
    given in the list created by doing parser_list +
    default_parser_list.  The lists must contain the names of Python
    modules containing both a SAX parser and a create_parser function.Ns   No parsers found(   s   parser_lists   default_parser_lists   parser_names   _create_parsers   ImportErrors   es   syss   moduless   has_keys   SAXReaderNotAvailables   None(   s   parser_lists   syss   parser_names   e(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   make_parserG s    	c    s?   b c d k  l } d | i |  d t    } e | i   Sd  S(   N(   s   impi    (   s   org.python.cores   imps
   importNames   parser_names   globalss
   drv_modules   create_parser(   s   parser_names   imps
   drv_module(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   _create_parserb s   c    s/   h i t  |  h  h  d g  } j | i   Sd  S(   Ns   create_parser(   s
   __import__s   parser_names
   drv_modules   create_parser(   s   parser_names
   drv_module(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   _create_parserh s   (   s   __doc__s	   xmlreaders   InputSources   handlers   ContentHandlers   ErrorHandlers   _exceptionss   SAXExceptions   SAXNotRecognizedExceptions   SAXParseExceptions   SAXNotSupportedExceptions   SAXReaderNotAvailables   parses   parseStrings   default_parser_lists   _falses   xml.sax.expatreaders   xmls   oss   strings   syss   environs   has_keys   splits   _keys   platforms   registrys   containsKeys   getPropertys   make_parsers   _create_parser(   s   xmls   parses   parseStrings   SAXNotRecognizedExceptions   SAXReaderNotAvailables   _create_parsers   ErrorHandlers   ContentHandlers   InputSources   default_parser_lists   syss   _falses   SAXExceptions   SAXParseExceptions   SAXNotSupportedExceptions   make_parsers   oss   _keys   string(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   ? s*   (	
 	*%