ó
³Ebc           @   s¨   d  d l  m Z d  d l  m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d S(   i   (   t   PY2(   t	   text_typet   BadDatac           B   s>   e  Z d  Z d Z d „  Z d „  Z e r< e Z d „  Z n  RS(   s“   Raised if bad data of any sort was encountered. This is the base
    for all exceptions that itsdangerous defines.

    .. versionadded:: 0.15
    c         C   s&   t  t |  ƒ j |  | ƒ | |  _ d  S(   N(   t   superR   t   __init__t   message(   t   selfR   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR      s    c         C   s   t  |  j ƒ S(   N(   R   R   (   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyt   __str__   s    c         C   s   |  j  ƒ  j d ƒ S(   Ns   utf-8(   t   __unicode__t   encode(   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR      s    N(	   t   __name__t
   __module__t   __doc__t   NoneR   R   R   R    R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR      s   		t   BadSignaturec           B   s   e  Z d  Z d d „ Z RS(   s%   Raised if a signature does not match.c         C   s   t  j |  | ƒ | |  _ d  S(   N(   R   R   t   payload(   R   R   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR      s    N(   R
   R   R   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR      s   t   BadTimeSignaturec           B   s   e  Z d  Z d d d „ Z RS(   sb   Raised if a time-based signature is invalid. This is a subclass
    of :class:`BadSignature`.
    c         C   s    t  j |  | | ƒ | |  _ d  S(   N(   R   R   t   date_signed(   R   R   R   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   /   s    N(   R
   R   R   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   *   s   t   SignatureExpiredc           B   s   e  Z d  Z RS(   sr   Raised if a signature timestamp is older than ``max_age``. This
    is a subclass of :exc:`BadTimeSignature`.
    (   R
   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   :   s   t	   BadHeaderc           B   s    e  Z d  Z d d d d „ Z RS(   s®   Raised if a signed header is invalid in some form. This only
    happens for serializers that have a header that goes with the
    signature.

    .. versionadded:: 0.24
    c         C   s)   t  j |  | | ƒ | |  _ | |  _ d  S(   N(   R   R   t   headert   original_error(   R   R   R   R   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   H   s    	N(   R
   R   R   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   @   s   t
   BadPayloadc           B   s   e  Z d  Z d d „ Z RS(   s4  Raised if a payload is invalid. This could happen if the payload
    is loaded despite an invalid signature, or if there is a mismatch
    between the serializer and deserializer. The original exception
    that occurred during loading is stored on as :attr:`original_error`.

    .. versionadded:: 0.15
    c         C   s   t  j |  | ƒ | |  _ d  S(   N(   R   R   R   (   R   R   R   (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   ]   s    N(   R
   R   R   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyR   T   s   N(
   t   _compatR    R   t	   ExceptionR   R   R   R   R   R   (    (    (    sh   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/itsdangerous/exc.pyt   <module>   s   