KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21573/task/21573/root/proc/21572/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/task/21573/root/proc/21572/root/usr/lib64/python2.4/pprint.pyc
mò
‚=5Dc@sÞdZdkZdklZddddddgZd	iZe	Z
eZe
Zdd
ddd„Zd
ddd
„Zd„Zd„Zd„Zdfd„ƒYZd„Zd„Zdd„ZedjoeƒndS(s/Support to pretty-print lists, tuples, & dictionaries recursively.

Very simple, but useful, especially in debugging data structures.

Classes
-------

PrettyPrinter()
    Handle pretty-printing operations onto a stream using a configured
    set of formatting parameters.

Functions
---------

pformat()
    Format a Python object into a pretty-printed representation.

pprint()
    Pretty-print a Python object to a stream [default is sys.stdout].

saferepr()
    Generate a 'standard' repr()-like value, but protect against recursive
    data structures.

N(sStringIOtpprinttpformatt
isreadabletisrecursivetsafereprt
PrettyPrinters, iiPc	Cs2td|d|d|d|ƒ}|i|ƒdS(sAPretty-print a Python object to a stream [default is sys.stdout].tstreamtindenttwidthtdepthN(RRRRR	tprinterRtobject(RRRRR	R
((t/usr/lib64/python2.4/pprint.pyR3s!cCs"td|d|d|ƒi|ƒS(s<Format a Python object into a pretty-printed representation.RRR	N(RRRR	RR(RRRR	((RR9scCst|hddƒdS(s=Version of repr() which can handle recursive data structures.iN(t
_safe_reprRtNone(R((RR=scCst|hddƒdS(s4Determine if saferepr(object) is readable by eval().iiN(R
RR(R((RRAscCst|hddƒdS(s8Determine if object requires a recursive representation.iiN(R
RR(R((RREscBs\tZddddd„Zd„Zd„Zd„Zd„Zd„Zd	„Z	d
„Z
RS(NiiPcCs©t|ƒ}t|ƒ}|djp
td‚|djp|djp
td‚|p
td‚||_||_||_	|dj	o
||_n
ti
|_dS(sòHandle pretty printing operations onto a stream using a set of
        configured parameters.

        indent
            Number of spaces to indent for each level of nesting.

        width
            Attempted maximum number of columns in the output.

        depth
            The maximum depth to print out nested structures.

        stream
            The desired output stream.  If omitted (or false), the standard
            output stream available at construction will be used.

        isindent must be >= 0sdepth must be > 0swidth must be != 0N(tintRRtAssertionErrorR	Rtselft_deptht_indent_per_levelt_widthRt_streamt_syststdout(RRRR	R((Rt__init__Js$			

cCs!|ii|i|ƒdƒdS(Ns
(RRtwriteRR(RR((RRiscCs/tƒ}|i||ddhdƒ|iƒS(Ni(t	_StringIOtsioRt_formatRtgetvalue(RRR((RRls	cCs|i|hddƒdS(Nii(RtformatR(RR((RRqscCs-|i|hddƒ\}}}|o|S(Ni(RRRtstreadablet	recursive(RRR RR!((RRts!cCs
|d}t|ƒ}	|	|jo-|it|ƒƒt|_
t|_dSn|i
|||dƒ}t|ƒ}t|ƒ|id||j}|i}|oYt|ddƒ}t|tƒo›|tijo‹|dƒ|idjo||iddƒnt|ƒ}|o3d||	<||i}|iƒ}
|
iƒ|
d\}}
|i
|||ƒ}||ƒ|dƒ|i"|
||t|ƒd|d||ƒ|djozxw|
dD]g\}}
|i
|||ƒ}|dd||fƒ|i"|
||t|ƒd|d||ƒqÊWn||i}||	=n|d	ƒdSnt|t#ƒo|t#ijp t|t$ƒoh|t$ijoXt|t#ƒo|d
ƒd}n|dƒd
}|idjo||iddƒnt|ƒ}|o«d||	<||i}|i"|d|||d||ƒ|djoKxH|dD]8}
|dd|ƒ|i"|
|||d||ƒqfWn||i}||	=nt|t$ƒo|djo|dƒn||ƒdSqÿn||ƒdS(Nit__repr__t{t is: is,
%s%s: t}t[t]t(t)s,
t,(&tlevelt_idRtobjidtcontextRRt
_recursiontTrueRt
_recursivetFalset	_readablet_reprtrept_typettypt_lenRRt	allowancetsepLinestgetattrRtrt
issubclasstdictR"RtlengthtitemstsorttkeytentRtlistttupletendchar(RRRRR9R.R+RFRR-RCRBR7R@R?R<R:R5((RRxs†

		!	 








@








cCsV|i||iƒ|i|ƒ\}}}|p
t
|_n|o
t|_
n|S(N(RRRR.tcopyRR+treprR R!R2R3R0R1(RRR.R+R!R RH((RR4Às

cCst||||ƒS(sÈFormat object for a specific context, returning a string
        and flags indicating whether the representation is 'readable'
        and whether the object represents a recursive construct.
        N(R
RR.t	maxlevelsR+(RRR.RIR+((RRÉs(t__name__t
__module__RRRRRRRR4R(((RRIs					H		c CsŠt|ƒ}|tjoúdtijot|ƒttfSnd|jo&d|jod}hdd<}nd}hdd<}|i}	t
ƒ}|i}xI|D]A}|iƒo||ƒqª||	|t|ƒdd!ƒƒqªWd||iƒ|fttfSnt|d	dƒ}t|tƒos|tijoc|pd
ttfSnt|ƒ}|o$||jodt||jfSn||jot|ƒttfSnd||<t}t}
g}|i"}
|d7}t#}x–|i%ƒD]ˆ\}}|||||ƒ\}}}|||||ƒ\}}}|
d||fƒ|o|o|}|p|o
t}
qúqúW||=d
t.|ƒ||
fSnt|t/ƒo|t/ijp t|t0ƒoˆ|t0ijoxt|t/ƒo"|pdttfSnd}n<t2|ƒdjo
d}n|pdttfSnd}t|ƒ}|o(||jo|dt||jfSn||jot|ƒttfSnd||<t}t}
g}|i"}
|d7}xX|D]P}t#||||ƒ\}}}|
|ƒ|p
t}n|o
t}
qêqêW||=|t.|ƒ||
fSnt|ƒ}||o|i8dƒtfS(Ntlocalet't"s\"s\'iiÿÿÿÿs%s%s%sR"s{}s{...}s%s: %ss{%s}s[]s[%s]s(%s,)s()s(%s)s...t<(9R6RR7tstrRtmodulesRHR0R2tclosuretquotestgettqgetRRRtchartisalphaRR;RR<R=R>R"R,R-RIR+R.R/R R!t
componentstappendR
Rt	iteritemstktvtkreprt	kreadabletkrecurtvreprt	vreadabletvrecurt
_commajoinRDRERR8totoreprt	oreadabletorecurR5t
startswith( RR.RIR+R^RVRSRdRbRURYReR_R!RgR5RR RRaR-RXR`R7RRR]RfRR[RR<R\((RR
Ósš
			
$$ 

	

@



	


cCsdt|ƒit|ƒfS(Ns<Recursion on %s with id=%s>(R6RRJR,(R((RR/'scCs¶dk}|djo5ddddghdd<dd	<fgd
}ntƒ}|iƒ}t|hddƒ|iƒ}|i|ƒ|iƒ}dG||GHd
G||GHdS(Ntstringiiiiiiiii †is_safe_repr:spformat:(ii(
ttimeRRRtptt1R
tt2Rtt3(RRmRnRlRkRj((Rt
_perfcheck,s	
5	

t__main__(t__doc__tsysRt	cStringIOtStringIORt__all__tjoinRctidR,tlenR8ttypeR6RRRRRRRR
R/RoRJ(RoR6RRuR8RRRR/R
RRRRcR,R((Rt?#s$	
				Š	T	



Anon7 - 2021