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.pyo
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|ƒ}||_||_||_|dj	o
||_
n
ti|_
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.

        N(
tintRRR	tselft_deptht_indent_per_levelt_widthRRt_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(RRRRR ((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(RRRRR8R-R*RERR,RBRAR6R?R>R;R9R4((RRxs†

		!	 








@








cCsV|i||iƒ|i|ƒ\}}}|p
t
|_n|o
t|_
n|S(N(RRRR-tcopyRR*treprRR R1R2R/R0(RRR-R*R RRG((RR3À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-RHR*((RRÉs(t__name__t
__module__RRRRRRRR3R(((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<(9R5RR6tstrRtmodulesRGR/R1tclosuretquotestgettqgetRRRtchartisalphaRR:RR;R<R=R!R+R,RHR*R-R.RR t
componentstappendR
Rt	iteritemstktvtkreprt	kreadabletkrecurtvreprt	vreadabletvrecurt
_commajoinRCRDRR7totoreprt	oreadabletorecurR4t
startswith( RR-RHR*R]RURRRcRaRTRXRdR^R RfR4RRRR`R,RWR_R6RQR\ReRRZRR;R[((RR
Ósš
			
$$ 

	

@



	


cCsdt|ƒit|ƒfS(Ns<Recursion on %s with id=%s>(R5RRIR+(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(RRlRmRkRjRi((Rt
_perfcheck,s	
5	

t__main__(t__doc__tsysRt	cStringIOtStringIORt__all__tjoinRbtidR+tlenR7ttypeR5RRRRRRRR
R.RnRI(RnR5RRtR7RRRR.R
RRRRbR+R((Rt?#s$	
				Š	T	



Anon7 - 2021