î j f¡ ã @ så d Z d d l Z d d l Z d d l m Z d d d d d „ Z d d d „ 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)a Python 'uu_codec' Codec - UU content transfer encoding. This codec de/encodes from bytes to bytes. Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were adapted from uu.py which was written by Lance Ellinghouse and modified by Jack Jansen and Fredrik Lundh. é N)ÚBytesIOÚstrictzi¶ c C s t | ƒ } t ƒ } | j } | j } | d | d @| f j d ƒ ƒ | d ƒ } x) | r | t j | ƒ ƒ | d ƒ } qW W| d ƒ | j ƒ t | ƒ f S)Nzbegin %o %s iÿ Úasciié- s end )r ÚreadÚwriteÚencodeÚbinasciiZb2a_uuÚgetvalueÚlen) ÚinputÚerrorsÚfilenameÚmodeÚinfileÚoutfiler r Úchunk© r ú7/opt/alt/python34/lib64/python3.4/encodings/uu_codec.pyÚ uu_encode s ! r c C s7 t | ƒ } t ƒ } | j } | j } x<