%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/utils/ |
Current File : //usr/lib/python2.7/site-packages/salt/utils/yamlloader_old.pyc |
� ���^c @@ s d Z d d l m Z m Z m Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z y e j e _ e j e _ Wn e k r� n Xd d l Z d d d g Z d e f d � � YZ e j d d e �d e j f d � � YZ e d � Z e d � Z d S( u Custom YAML loading in Salt i ( t absolute_importt print_functiont unicode_literalsN( t MappingNodet SequenceNode( t ConstructorErroru SaltYamlSafeLoaderu loadu safe_loadt DuplicateKeyWarningc B@ s e Z d Z RS( u* Warned when duplicate keys exist ( t __name__t __module__t __doc__( ( ( s= /usr/lib/python2.7/site-packages/salt/utils/yamlloader_old.pyR s u alwayst categoryt SaltYamlSafeLoaderc B@ s\ e Z d Z e d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z RS( u� Create a custom YAML loader that uses the custom constructor. This allows for the YAML loading defaults to be manipulated based on needs within salt to make things like sls file more intuitive. c C@ s� t t | � j | � | t k rW | j d t | � j � | j d t | � j � n | j d t | � j � | j d t | � j � | j d t | � j � | | _ d S( Nu tag:yaml.org,2002:mapu tag:yaml.org,2002:omapu tag:yaml.org,2002:stru tag:yaml.org,2002:python/unicodeu tag:yaml.org,2002:timestamp( t superR t __init__t dictt add_constructort typet construct_yaml_mapt construct_yaml_strt construct_unicodet construct_scalart dictclass( t selft streamR ( ( s= /usr/lib/python2.7/site-packages/salt/utils/yamlloader_old.pyR ) s$ c c@ s1 | j � } | V| j | � } | j | � d S( N( R t construct_mappingt update( R t nodet datat value( ( s= /usr/lib/python2.7/site-packages/salt/utils/yamlloader_old.pyR >