î
\á[\  ã               @   s¥   d  Z  d d l Z Gd d „  d e j ƒ Z Gd d „  d e j ƒ Z Gd d „  d e j ƒ Z Gd	 d
 „  d
 e e j ƒ Z Gd d „  d e e j ƒ Z d d „  Z d S)a5   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.

é    Nc               @   s.   e  Z d  Z d d d „ Z d d d „ Z d S)ÚCodecÚstrictc             C   s   t  d ƒ ‚ d  S)Nzundefined encoding)ÚUnicodeError)ÚselfÚinputÚerrors© r   ú)/usr/lib/python3.4/encodings/undefined.pyÚencode   s    zCodec.encodec             C   s   t  d ƒ ‚ d  S)Nzundefined encoding)r   )r   r   r   r   r   r	   Údecode   s    zCodec.decodeN)Ú__name__Ú
__module__Ú__qualname__r
   r   r   r   r   r	   r      s   r   c               @   s   e  Z d  Z d d d „ Z d S)ÚIncrementalEncoderFc             C   s   t  d ƒ ‚ d  S)Nzundefined encoding)r   )r   r   Úfinalr   r   r	   r
      s    zIncrementalEncoder.encodeN)r   r   r   r
   r   r   r   r	   r      s   r   c               @   s   e  Z d  Z d d d „ Z d S)ÚIncrementalDecoderFc             C   s   t  d ƒ ‚ d  S)Nzundefined encoding)r   )r   r   r   r   r   r	   r      s    zIncrementalDecoder.decodeN)r   r   r   r   r   r   r   r	   r      s   r   c               @   s   e  Z d  Z d S)ÚStreamWriterN)r   r   r   r   r   r   r	   r       s   r   c               @   s   e  Z d  Z d S)ÚStreamReaderN)r   r   r   r   r   r   r	   r   #   s   r   c               C   s@   t  j d d d t ƒ  j d t ƒ  j d t d t d t d t ƒ S)	NÚnameZ	undefinedr
   r   ÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreader)	ÚcodecsÚ	CodecInfor   r
   r   r   r   r   r   r   r   r   r	   Úgetregentry(   s    	r   )Ú__doc__r   r   r   r   r   r   r   r   r   r   r	   Ú<module>   s   