%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/utils/ |
Current File : //usr/lib/python2.7/site-packages/salt/utils/xmlutil.pyc |
� ���^c @@ sM d Z d d l m Z m Z m Z d � Z d � Z d � Z e d � Z d S( u Various XML utilities i ( t absolute_importt print_functiont unicode_literalsc C@ s- d | k r) | j d � } | d } | S| S( u� If this XML tree has an xmlns attribute, then etree will add it to the beginning of the tag, like: "{http://path}tag". u }i ( t split( t xt compst name( ( s6 /usr/lib/python2.7/site-packages/salt/utils/xmlutil.pyt _conv_name s c C@ s� t | j � � d k r5 t | j � } i | j | 6Si } x� | D]� } t | j � } | | k r� t | j � � d k r� t | � | | <q� | j | | <qB t | | t � s� | | g | | <n | | j t | � � qB W| S( u� Converts an XML ElementTree to a dictionary that only contains items. This is the default behavior in version 2017.7. This will default to prevent unexpected parsing issues on modules dependant on this. i i ( t lent getchildrenR t tagt textt _to_dictt isinstancet listt append( t xmltreeR t xmldictt item( ( s6 /usr/lib/python2.7/site-packages/salt/utils/xmlutil.pyR s c C@ s i } x'