
    Vh/                    8    d dl mZ d dlmZ dgZ G d de      Zy)    )annotations)NativeTemplateAnsibleJ2Templatec                      e Zd ZdZddZy)r   a  
    A helper class, which prevents Jinja2 from running AnsibleJ2Vars through dict().
    Without this, {% include %} and similar will create new contexts unlike the special
    one created in Templar.template. This ensures they are all alike, except for
    potential locals.
    Nc                :   |t        | j                  xs d      }t        |t               r$|j                         }|#|j	                  |       n|j                  |      }| j                  j                  | j                  || j                  | j                        S )N )
dictglobals
isinstancecopyupdate
add_localsenvironmentcontext_classnameblocks)selfvarssharedlocalss       I/home/dcms/DCMS/lib/python3.12/site-packages/ansible/template/template.pynew_contextzAnsibleJ2Template.new_context!   s}    <*+DdD!99;D!F#??6*D--d.>.>diiQUQ\Q\]]    )NFN)__name__
__module____qualname____doc__r   r   r   r   r   r      s    
^r   N)
__future__r   jinja2.nativetypesr   __all__r   r   r   r   <module>r!      s#   $ # -
^ ^r   