Ę
P}:c       sL  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 d g Z d k Z d k Z d k Z e i i d  o e i e i d d	  Z n [ d
 Z e i d  d j o e i i e  o" e i e i i e  d	  Z n g  d  Z e i d  d j o d   Z n
 d   Z [ 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    s4   t    } | i |  | i |  | i |   d  S(   N(   s   make_parsers   parsers   setContentHandlers   handlers   setErrorHandlers   errorHandlers   parses   source(   s   sources   handlers   errorHandlers   parsers,   /usr/local/lib/python2.0/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   } | i | |    | 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   inpsrcs,   /usr/local/lib/python2.0/xml/sax/__init__.pys   parseString# s    		s   xml.sax.expatreaderNs   PY_SAX_PARSERs   ,s   python.xml.sax.parseri   s   javac    s   xo |  t d ra } y t |  SWnJ t j
 o, } d k } | i i |  o   n n t	 j
 o n Xq Wt	 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.i    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   parser_names   es   syss,   /usr/local/lib/python2.0/xml/sax/__init__.pys   make_parserB s      		c    s3   d k  l } | i |  d t    } | i   Sd  S(   N(   s   impi    (   s   org.python.cores   imps
   importNames   parser_names   globalss
   drv_modules   create_parser(   s   parser_names   imps
   drv_modules,   /usr/local/lib/python2.0/xml/sax/__init__.pys   _create_parser] s    c    s&   t  |  h  h  d g  } | i   Sd  S(   Ns   create_parser(   s
   __import__s   parser_names
   drv_modules   create_parser(   s   parser_names
   drv_modules,   /usr/local/lib/python2.0/xml/sax/__init__.pys   _create_parserc s    (   s   __doc__s	   xmlreaders   InputSources   handlers   ContentHandlers   ErrorHandlers   _exceptionss   SAXExceptions   SAXNotRecognizedExceptions   SAXParseExceptions   SAXNotSupportedExceptions   SAXReaderNotAvailables   parses   parseStrings   default_parser_lists   oss   strings   syss   environs   has_keys   splits   _keys   platforms   registrys   containsKeys   getPropertys   make_parsers   _create_parser(    s,   /usr/local/lib/python2.0/xml/sax/__init__.pys   ? s$   %	'"	