mò ©ËŽGc @ s] d k Td k Td k Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( ( t *Nt TextFilec B se t Z d Z d Z d Z d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Ns text files create text files Text Filesi c C sh | | | _ | _ | | _ xE t | i ƒ d j o. t i | i d ƒ d j o | i i ƒ q Wd S( Ni iÿÿÿÿt ( t patht linest selft transt _transt lent stringt stript pop( R R R R ( ( tb /home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/TextFile.pyt __init__ s 3 c C s/ t | i ƒ t | i ƒ j o | i | i j S( N( t fullpathR R t tR ( R R ( ( R t equal s c C s | i S( N( R R ( R ( ( R t str s c C s; t d | d | d t | i ƒ t | i ƒ j ƒ d S( Nt [s ] and [s ] are incompatible.( t ReasonR R R R ( R R ( ( R t compatible s c C s t d | i ƒ d | i ƒ S( Ns File [s ] has not been attempted.( R R R t acquired( R ( ( R t satisfied s c C s t ƒ S( N( R ( R ( ( R t satisfiable s c C sä t ƒ } t | i ƒ } | i oA g } x* | i D] } | i t i i | ƒ ƒ q2 W| | _ n yK t | d ƒ } x" | i D] } | i | d ƒ q W| i ƒ | | _ Wn/ t t f j o | i d | d ƒ n X| S( Nt ws s Failure attempting to write [s ].( R t reasonR R R R t lsR t linet appendt ost expandvarst opent ft writet closet IOErrort OSError( R R R R R R ( ( R t acquire s$ c C sm t ƒ } t i i | i ƒ oJ y t i | i ƒ Wqi t t f j o | i d | d ƒ qi Xn | S( Ns Failure attemting to remove [s ].( R R R R t existsR t removeR# R$ ( R R ( ( R t retract0 s ( t __name__t __module__t typet actiont titleR R R R R R R% R( ( ( ( R R s t PersistentTextFilec B s# t Z d Z d Z d Z d „ Z RS( Ns Persistent text filess Persistent Text Filess make persistent text filec C s t ƒ S( N( R ( R ( ( R R( = s ( R) R* R+ R- R, R( ( ( ( R R. 9 s t SourceCodec B s5 t Z d Z d Z d Z d „ Z d „ Z d „ Z RS( Ns pacman source codes Pacman Sourcesc C s t ƒ S( N( R ( R ( ( R R D s c C s t ƒ S( N( R ( R ( ( R R E s c C s¡ | i | d ƒ | i d ƒ d } | i d ƒ | i ƒ x; | i D]0 } | d } | d } | i d | d ƒ qE W| i d ƒ | i ƒ | i d ƒ d S( Ni s
s . s s ss