File: //proc/2/cwd/proc/3/root/usr/lib/python2.4/uu.pyc
mò
‚=5Dc @ s™ d Z d k Z d k Z d k Z d k l Z d d d g Z d e f d „ ƒ YZ d d d „ Z
d d d d „ Z d
„ Z e
d j o e ƒ n d S( sƒ Implementation of the UUencode and UUdecode functions.
encode(in_file, out_file [,name, mode])
decode(in_file [, out_file, mode])
N( s
StringTypet Errort encodet decodec B s t Z RS( N( t __name__t
__module__( ( ( t /usr/lib/python2.4/uu.pyR ( s c C sƒ | d j o
t i } n„ t | t ƒ os | d
j o t i i | ƒ } n | d
j o0 y t i | ƒ i } WqŠ t
j
o qŠ Xn t | d ƒ } n | d j o
t i } n$ t | t ƒ o t | d ƒ } n | d
j o
d } n | d
j o
d } n | i d | d @| f ƒ | i d ƒ } x= t | ƒ d j o) | i t i | ƒ ƒ | i d ƒ } q5W| i d ƒ d
S( s
Uuencode filet -t rbt wi¶ s begin %o %s
iÿ i- i s
end
N( t in_filet syst stdint
isinstancet
StringTypet namet Nonet ost patht basenamet modet statt st_modet AttributeErrort opent out_filet stdoutt writet readt strt lent binasciit b2a_uu( R R R R R ( ( R R + s6
i c C s¢ | d j o
t i } n! t | t ƒ o t | ƒ } n x£ | i ƒ } | p
t d ‚ n | d d j o q= n | i d d ƒ }
t |
ƒ d j oA |
d d j o0 y t |
d d
ƒ PWqÛ t
j
o qÛ Xq= q= W| d j o8 |
d i ƒ } t i i | ƒ o t d | ‚ q%n | d j o t |
d d
ƒ } n | d j o
t i } nW t | t ƒ oF t | d ƒ } y t i i | | ƒ Wn t j
o n X| } n | i ƒ } x | oº | i ƒ d
j o§ y t i | ƒ } Wnt t i j
oe } t | d ƒ d d @d d d } t i | | ƒ } | p t i"