ó
®â0_c           @   sb   d  Z  d d l Z d d l m Z m Z d d l m Z d d l m Z	 d e	 f d „  ƒ  YZ d S(	   s9   
Wrapper for loading templates from a plain Python dict.
iÿÿÿÿN(   t   Origint   TemplateDoesNotExist(   t   RemovedInDjango20Warningi   (   t   LoaderR   c           B   s/   e  Z d  „  Z d „  Z d „  Z d d „ Z RS(   c         C   s#   | |  _  t t |  ƒ j | ƒ d  S(   N(   t   templates_dictt   superR   t   __init__(   t   selft   engineR   (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyR      s    	c         C   s6   y |  j  | j SWn t k
 r1 t | ƒ ‚ n Xd  S(   N(   R   t   namet   KeyErrorR   (   R   t   origin(    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyt   get_contents   s    c         c   s   t  d | d | d |  ƒ Vd  S(   NR	   t   template_namet   loader(   R    (   R   R   (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyt   get_template_sources   s    c         C   sI   t  j d t ƒ y |  j | | f SWn t k
 rD t | ƒ ‚ n Xd  S(   Ns_   The load_template_sources() method is deprecated. Use get_template() or get_contents() instead.(   t   warningst   warnR   R   R
   R   (   R   R   t   template_dirs(    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyt   load_template_source    s    N(   t   __name__t
   __module__R   R   R   t   NoneR   (    (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyR      s   			(
   t   __doc__R   t   django.templateR    R   t   django.utils.deprecationR   t   baseR   t
   BaseLoader(    (    (    s@   /tmp/pip-unpacked-wheel-BAJOf3/django/template/loaders/locmem.pyt   <module>   s
   