mņ ŖĖŽGc@s;dkTdkTdfd„ƒYZdefd„ƒYZdS((t*t CookieStringcBs#tZd„Zd„Zd„ZRS(NcCsJtt|ƒƒ |_tiitt d|iƒ|_ t dƒ|_ dS(Ntcookiessignore-cookies( tabsthashtidentitytselft _identitytostpathtjoint pac_anchort pacmanDirt_pathtswitcht_ignore(RR((t`/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/Choice.pyt__init__s!cCsttƒd}}|ioFtdƒ}yt|iƒWnttfj onXd|_n|i ƒo#tdt i i |iƒ ƒ}n|i ƒoĶy,t |idƒ}|iƒ}|iƒWn6ttfj o$g}td|idƒ}nX|i ƒoWt|ƒdjo)t|dƒdjo|dd }qftd |id ƒ}qjn||fS( NtsIgnoring cookiesisNo cookie file.trsError reading from [s].i’’’’s Contents of [s] has been corrupted.(tReasonRtansRRt removeFileR tIOErrortOSErrortokRR texiststopentft readlinestlinestclosetlen(RRRRR((Rtinit s.    #   *cCsytƒ}y1t|idƒ}|i|dƒ|iƒWn8t t fj o&td|d|idƒ}nX|S(Ntws s Can't write [s] to [s].( RRRRR RtwritettextRRR(RR$RR((Rtsave's $(t__name__t __module__RR!R%(((RRs  tChoicecBsbtZdZdZdZd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z RS( NtchoicetChoicestchoosecGs_|||_|_g}|D] }||q~|_d|_ d|_ d|_ d|_ dS(Ns- unanswered -Ri( tquestiontanswerRt _questiont_answert_[1]tanswerstxt_answerst _useranswerRt_parentPackageNamet_init(RR-R,R1R0R2((RR6s $   cCsH|ip:|i|i |i|_t|iƒ|_d|_ndS(Ni(RR6R.R3R5RRt _cookieAns(R((RR!>s cCs#|i|ijo|i|ijS(N(RR.R2R3(RR2((RtequalDscCs1d|id|id|i d|idS(NsAsked [s ] chosen [s] from s user chose [s].(RR.R/R3R4(R((RtstrEscCstƒS(N(R(R((Rt satisfiableGscCs€|iƒ|iiƒ\}|_|iƒo6td|id|id|i|ij ƒ}ntd|idƒ}|S(NsOption [s] in answer to [s] has been declined.t[s] hasn't been asked.( RR!R7RR4RRR/R.(RR((Rt satisfiedHs   6cCsī|iƒ|iiƒ\}}|iƒo3td|id|id||ij ƒ}nŒx>t |idƒ}||i joPqbd|i dGHqbW|ii |ƒ}td|id|id||ij ƒ}||_ |S(NsOption [s] in answer to [s] has been declined.is: sYou must choose from s. Try again...( RR!R7RRRRR/R.t raw_inputR3R%R4(RRR((RtacquirePs  3/ cCsd|_tƒS(Ns- unanswered -(RR4R(R((Rtretract_s ( R&R'ttypettitletactionRR!R8R9R:R<R>R?(((RR(1s       N(tBaset EnvironmentRR((RR(((Rt?s*