관리-도구
편집 파일: __init__.cpython-35.opt-2.pyc
���]. � @ sv d d l m Z d d l m Z m Z d d l m Z m Z m Z m Z m Z e � d d � Z e � d d � Z d g Z d Z e r� d d l Z d d l Z d d l Z e j j r� d e j k r� e j d j d � Z [ d Z e j d d � d k r,e j j e � r,e j j e � j d � Z g d d � Z e j d d � d k rcd d � Z n d d � Z [ d S)� )�InputSource)�ContentHandler�ErrorHandler)�SAXException�SAXNotRecognizedException�SAXParseException�SAXNotSupportedException�SAXReaderNotAvailablec C s4 t � } | j | � | j | � | j | � d S)N)�make_parser�setContentHandler�setErrorHandler�parse)�source�handler�errorHandler�parser� r �-/opt/alt/python35/lib64/python3.5/__init__.pyr s r c C s� d d l } | d k r! t � } t � } | j | � | j | � t � } t | t � ru | j | j | � � n | j | j | � � | j | � d S)N� ) �ior r r r r � isinstance�strZsetCharacterStream�StringIOZ setByteStream�BytesIOr )�stringr r r r Zinpsrcr r r �parseString# s r zxml.sax.expatreaderr NZ PY_SAX_PARSER�,zpython.xml.sax.parser� �javac C s� xw | t D]k } y t | � SWq t k rd } z# d d l } | | j k rR � WYd d } ~ Xq t k ru Yq Xq Wt d d � � d S)Nr zNo parsers found)�default_parser_list�_create_parser�ImportError�sys�modulesr )Zparser_list�parser_name�er"