a ì)gƒã@s>ddlmZmZmZeZddlmZdgZGdd„deƒZ dS)é)Úabsolute_importÚdivisionÚprint_function)ÚNativeTemplateÚAnsibleJ2Templatec@seZdZdZddd„ZdS)ra 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. NFcCs^|durt|jpdƒ}t|tƒr<| ¡}|durF| |¡n | |¡}|j |j||j|j ¡S)N©) ÚdictÚglobalsÚ isinstanceÚcopyÚupdateZ add_localsZ environmentZ context_classÚnameZblocks)ÚselfÚvarsZsharedÚlocalsrrú=/usr/lib/python3.9/site-packages/ansible/template/template.pyÚ new_context#s   zAnsibleJ2Template.new_context)NFN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrsN) Z __future__rrrÚtypeZ __metaclass__Zjinja2.nativetypesrÚ__all__rrrrrÚs