ó
è¾bc           @   s¢   d  Z  d d l Z d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d	 e e j f d
 „  ƒ  YZ d e e j f d „  ƒ  YZ d „  Z d S(   s5   Python 'undefined' Codec

    This codec will always raise a ValueError exception when being
    used. It is intended for use by the site.py file to switch off
    automatic string to Unicode coercion.

Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

iÿÿÿÿNt   Codecc           B   s    e  Z d  d „ Z d  d „ Z RS(   t   strictc         C   s   t  d ƒ ‚ d  S(   Ns   undefined encoding(   t   UnicodeError(   t   selft   inputt   errors(    (    s)   /usr/lib/python2.7/encodings/undefined.pyt   encode   s    c         C   s   t  d ƒ ‚ d  S(   Ns   undefined encoding(   R   (   R   R   R   (    (    s)   /usr/lib/python2.7/encodings/undefined.pyt   decode   s    (   t   __name__t
   __module__R   R   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR       s   t   IncrementalEncoderc           B   s   e  Z e d  „ Z RS(   c         C   s   t  d ƒ ‚ d  S(   Ns   undefined encoding(   R   (   R   R   t   final(    (    s)   /usr/lib/python2.7/encodings/undefined.pyR      s    (   R   R	   t   FalseR   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR
      s   t   IncrementalDecoderc           B   s   e  Z e d  „ Z RS(   c         C   s   t  d ƒ ‚ d  S(   Ns   undefined encoding(   R   (   R   R   R   (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR      s    (   R   R	   R   R   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR      s   t   StreamWriterc           B   s   e  Z RS(    (   R   R	   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR       s   t   StreamReaderc           B   s   e  Z RS(    (   R   R	   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyR   #   s   c           C   s@   t  j d d d t ƒ  j d t ƒ  j d t d t d t d t ƒ S(	   Nt   namet	   undefinedR   R   t   incrementalencodert   incrementaldecodert   streamwritert   streamreader(	   t   codecst	   CodecInfoR    R   R   R
   R   R   R   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyt   getregentry(   s    	(   t   __doc__R   R    R
   R   R   R   R   (    (    (    s)   /usr/lib/python2.7/encodings/undefined.pyt   <module>   s   