ó
(TQc           @@ s]   d  Z  d d l m Z m Z d d l m Z m Z m Z m Z m	 Z	 m
 Z
 d „  Z d Z d S(   s2   Defuse XML bomb denial of service vulnerabilities
i    (   t   print_functiont   absolute_importi   (   t   DefusedXmlExceptiont   DTDForbiddent   EntitiesForbiddent   ExternalReferenceForbiddent   NotSupportedErrort   _apply_defusingc          C@ sÚ   i  }  d d l  m } d d l  m } d d l  m } d d l  m } d d l  m } d d l  m } d d l  m } d d	 l  m } | j	 ƒ  d
 |  | <x9 | | | | | | | g D] }	 t |	 ƒ }
 |
 |  |	 <q¶ W|  S(   sl   Monkey patch and defuse all stdlib packages

    :warning: The monkey patch is an EXPERIMETNAL feature.
    i   (   t   cElementTree(   t   ElementTree(   t   minidom(   t   pulldom(   t   sax(   t   expatbuilder(   t   expatreader(   t   xmlrpcN(   t    R   R	   R
   R   R   R   R   R   t   monkey_patcht   NoneR   (   t   defusedR   R	   R
   R   R   R   R   R   t   defused_modt
   stdlib_mod(    (    s7   /usr/lib/python2.7/dist-packages/defusedxml/__init__.pyt   defuse_stdlib   s     

s   0.4.1N(   t   __doc__t
   __future__R    R   t   commonR   R   R   R   R   R   R   t   __version__(    (    (    s7   /usr/lib/python2.7/dist-packages/defusedxml/__init__.pyt   <module>   s   .	