-ķ
ģ¶<c       sf  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 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 [ 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   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   } | 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   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   xm |  t D]a } 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.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    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_module(    (    s&   /usr/lib/python2.2/xml/sax/__init__.pys   _create_parserb 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_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*   %	'"	