Ñò §ÚêLc@s`dZddgZddkZddklZddd„ƒYZd„ZeƒZeiZdS( sGRedo the builtin repr() (representation) but with limits on most sizes.tReprtrepriÿÿÿÿN(tislicecBs‰eZd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„ZRS(cCsgd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ dS(Niiiii(i( tmaxleveltmaxtupletmaxlisttmaxarraytmaxdicttmaxsett maxfrozensettmaxdequet maxstringtmaxlongtmaxother(tself((s/usr/lib64/python2.6/repr.pyt__init__ s          cCs|i||iƒS(N(trepr1R(Rtx((s/usr/lib64/python2.6/repr.pyRscCsït|ƒi}d|jo|iƒ}di|ƒ}nt|d|ƒot|d|ƒ||ƒSti|ƒ}t|ƒ|i joXt d|i ddƒ}t d|i d|ƒ}|| d|t|ƒ|}n|SdS(Nt t_trepr_iiis...( ttypet__name__tsplittjointhasattrtgetattrt __builtin__RtlenR tmax(RRtlevelttypenametpartststitj((s/usr/lib64/python2.6/repr.pyRs  $tcCsÐt|ƒ}|djo|o d}n–|d} |i} g} t||ƒD]} | | | | ƒqQ~ } ||jo| idƒndi| ƒ}|djo|o||}nd|||fS(Nis...is, s%s%s%s(RRRtappendR(RRRtlefttrighttmaxiterttrailtnR!tnewlevelRt_[1]telemtpieces((s/usr/lib64/python2.6/repr.pyt_repr_iterable)s    3 cCs|i||dd|idƒS(Nt(t)t,(R/R(RRR((s/usr/lib64/python2.6/repr.pyt repr_tuple6scCs|i||dd|iƒS(Nt[t](R/R(RRR((s/usr/lib64/python2.6/repr.pyt repr_list9scCs)d|i}|i|||d|iƒS(Ns array('%s', [s])(ttypecodeR/R(RRRtheader((s/usr/lib64/python2.6/repr.pyt repr_array<s cCs(t|ƒ}|i||dd|iƒS(Nsset([s])(t_possibly_sortedR/R(RRR((s/usr/lib64/python2.6/repr.pytrepr_set@s cCs(t|ƒ}|i||dd|iƒS(Ns frozenset([s])(R:R/R (RRR((s/usr/lib64/python2.6/repr.pytrepr_frozensetDs cCs|i||dd|iƒS(Nsdeque([s])(R/R (RRR((s/usr/lib64/python2.6/repr.pyt repr_dequeIsc Csàt|ƒ}|djodS|djodS|d}|i}g}xYtt|ƒ|iƒD]?}|||ƒ}||||ƒ} |id|| fƒqbW||ijo|idƒndi|ƒ} d| fS( Nis{}s{...}is%s: %ss...s, s{%s}(RRRR:RR%R( RRRR*R+RR.tkeytkeyreprtvalreprR!((s/usr/lib64/python2.6/repr.pyt repr_dictLs"     cCs­ti||i ƒ}t|ƒ|ijo}td|iddƒ}td|id|ƒ}ti|| |t|ƒ|ƒ}|| d|t|ƒ|}n|S(Niiis...(RRR RR(RRRR!R"R#((s/usr/lib64/python2.6/repr.pytrepr_str[s%$cCsti|ƒ}t|ƒ|ijoXtd|iddƒ}td|id|ƒ}|| d|t|ƒ|}n|S(Niiis...(RRRR R(RRRR!R"R#((s/usr/lib64/python2.6/repr.pyt repr_longds $cCs²yti|ƒ}Wn*tj od|iit|ƒfSXt|ƒ|ijoXtd|iddƒ}td|id|ƒ}|| d|t|ƒ|}n|S(Ns<%s instance at %x>iiis...( RRt Exceptiont __class__RtidRR R(RRRR!R"R#((s/usr/lib64/python2.6/repr.pyt repr_instancels$(Rt __module__RRRR/R3R6R9R;R<R=RARBRCRG(((s/usr/lib64/python2.6/repr.pyRs          cCs/yt|ƒSWntj ot|ƒSXdS(N(tsortedRDtlist(R((s/usr/lib64/python2.6/repr.pyR:zs(( t__doc__t__all__Rt itertoolsRRR:taReprR(((s/usr/lib64/python2.6/repr.pyts  r