config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/formatter.pyc

³ò
h”Rc@s¥dZddkZdZddd„ƒYZddd„ƒYZddd„ƒYZd	efd
„ƒYZdefd„ƒYZdd
„Z	e
djoe	ƒndS(sGeneric output formatting.

Formatter objects transform an abstract flow of formatting events into
specific output events on writer objects. Formatters manage several stack
structures to allow various properties of a writer object to be changed and
restored; writers need not be able to handle relative changes nor any sort
of ``change back'' operation. Specific writer properties which may be
controlled via formatter objects are horizontal alignment, font, and left
margin indentations. A mechanism is provided which supports providing
arbitrary, non-exclusive style settings to a writer as well. Additional
interfaces facilitate formatting events which are not reversible, such as
paragraph separation.

Writer objects encapsulate device interfaces. Abstract devices, such as
file formats, are supported as well as physical devices. The provided
implementations all work with abstract devices. The interface makes
available mechanisms for setting the properties which formatter objects
manage and inserting data into the output.
iÿÿÿÿNt
NullFormattercBs¼eZdZdd„Zd„Zd„Zd„Zdd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zdd„Zdd„ZRS(s=A formatter which does nothing.

    If the writer parameter is omitted, a NullWriter instance is created.
    No methods of the writer are called by NullFormatter instances.

    Implementations should inherit from this class if implementing a writer
    interface but don't need to inherit any implementation.

    cCs'|djo
tƒ}n||_dS(N(tNonet
NullWritertwriter(tselfR((s%/usr/local/lib/python2.5/formatter.pyt__init__&s

cCsdS(N((Rt	blankline((s%/usr/local/lib/python2.5/formatter.pyt
end_paragraph*scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pytadd_line_break+scOsdS(N((Rtargstkw((s%/usr/local/lib/python2.5/formatter.pytadd_hor_rule,scCsdS(N((RtformattcounterR((s%/usr/local/lib/python2.5/formatter.pytadd_label_data-scCsdS(N((Rtdata((s%/usr/local/lib/python2.5/formatter.pytadd_flowing_data.scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pytadd_literal_data/scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pytflush_softspace0scCsdS(N((Rtalign((s%/usr/local/lib/python2.5/formatter.pytpush_alignment1scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pyt
pop_alignment2scCsdS(N((Rtx((s%/usr/local/lib/python2.5/formatter.pyt	push_font3scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pytpop_font4scCsdS(N((Rtmargin((s%/usr/local/lib/python2.5/formatter.pytpush_margin5scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pyt
pop_margin6scCsdS(N((Rtspacing((s%/usr/local/lib/python2.5/formatter.pytset_spacing7scGsdS(N((Rtstyles((s%/usr/local/lib/python2.5/formatter.pyt
push_style8sicCsdS(N((Rtn((s%/usr/local/lib/python2.5/formatter.pyt	pop_style9scCsdS(N((Rtflag((s%/usr/local/lib/python2.5/formatter.pytassert_line_data:sN(t__name__t
__module__t__doc__RRRRRRRRRRRRRRRRRR!R#(((s%/usr/local/lib/python2.5/formatter.pyRs&															tAbstractFormattercBsÔeZdZd„Zd„Zd„Zd„Zdd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zdd„ZRS(sêThe standard formatter.

    This implementation has demonstrated wide applicability to many writers,
    and may be used directly in most circumstances.  It has been used to
    implement a full-featured World Wide Web browser.

    cCsy||_d|_g|_g|_g|_d|_g|_d|_d|_	d|_
d|_d|_d|_
dS(Nii(RRRtalign_stackt
font_stacktmargin_stackRtstyle_stacktnospacet	softspacetpara_endtparskipt
hard_breakt
have_label(RR((s%/usr/local/lib/python2.5/formatter.pyRKs												cCs|ip|iiƒd|_n|i|jo8|io-|ii||iƒ||_d|_nd|_|_|_d|_dS(Nii(	R0Rtsend_line_breakR1R/tsend_paragraphR,R.R-(RR((s%/usr/local/lib/python2.5/formatter.pyRZs


	
cCsR|ip|ip!|iiƒd|_|_nd|_|_d|_dS(Nii(R0R.RR2R1R/R,R-(R((s%/usr/local/lib/python2.5/formatter.pyRes

cOs`|ip|iiƒn|ii||Žd|_|_d|_|_|_|_dS(Nii(	R0RR2t
send_hor_ruleR,R1R.R-R/(RR	R
((s%/usr/local/lib/python2.5/formatter.pyRls

cCsÄ|ip|io|iiƒn|ip"|ii|odpdƒnt|tƒo |ii|i	||ƒƒn|ii|ƒd|_
|_|_|_d|_|_dS(Nii(
R1R0RR2R.R3t
isinstancetstrtsend_label_datatformat_counterR,R-R/(RRR
R((s%/usr/local/lib/python2.5/formatter.pyRss
" cCs´d}x§|D]Ÿ}|djo|d|}q
|djo+|djo||i||ƒ}q¬q
|djo+|djo||i||ƒ}q¬q
||}q
W|S(Ntt1s%dtaAitiI(t
format_lettertformat_roman(RRR
tlabeltc((s%/usr/local/lib/python2.5/formatter.pyR8s




cCsXd}xK|djo=t|ddƒ\}}tt|ƒ|ƒ}||}q	W|S(NR9iii(tdivmodtchrtord(RtcaseR
R?Rts((s%/usr/local/lib/python2.5/formatter.pyR=Žs
c	Csddddg}dddg}d\}}xÊ|d	jo¼t|d
ƒ\}}|djo||||d|}no|d
jo|||||}nH|djo||}|d}nd}||||}||}|d}q0W|djo|iƒSn|S(NtiRR@tmtvtltdR9ii
i	iiitI(R9i(RAtupper(	RRDR
tonestfivesR?tindexRRE((s%/usr/local/lib/python2.5/formatter.pyR>™s(






cCsü|pdSn|d iƒ}|diƒ}di|iƒƒ}|io|odSn]|p
|ioK|p(|ipd|_d|_ndSn|ipd|}qºnd|_|_|_|_|_||_|i	i
|ƒdS(Niiÿÿÿÿt i(tisspacetjointsplitR,R-R/R0R.R1Rtsend_flowing_data(RRtprespacet	postspace((s%/usr/local/lib/python2.5/formatter.pyR±s$
	

%	cCsy|pdSn|io|iidƒn|ddj|_d|_|_|_|_|_|ii|ƒdS(NRPiÿÿÿÿs
i(	R-RRTR0R,R.R/R1tsend_literal_data(RR((s%/usr/local/lib/python2.5/formatter.pyRÅs
%cCsP|ioBd|_|_|_|_|_d|_|iidƒndS(NiiRP(R-R0R.R/R1R,RRT(R((s%/usr/local/lib/python2.5/formatter.pyRÎs
%	cCs[|o=||ijo-|ii|ƒ||_|ii|ƒn|ii|iƒdS(N(RRt
new_alignmentR(tappend(RR((s%/usr/local/lib/python2.5/formatter.pyRÕs
	cCsg|io|id=n|io(|id|_}|ii|ƒnd|_|iidƒdS(Niÿÿÿÿ(R(RRRXR(RR((s%/usr/local/lib/python2.5/formatter.pyRÝs

	cCs	|\}}}}|io4d|_|_|_d|_|iidƒn|ioy|id\}}}}	|tjo
|}n|tjo
|}n|tjo
|}n|tjo
|	}qÓn||||f}
|ii|
ƒ|ii	|
ƒdS(NiiRPiÿÿÿÿ(
R-R0R.R,RRTR)tAS_ISRYtnew_font(Rt.1tsizeRFtbttttcsizetcitcbtctttfont((s%/usr/local/lib/python2.5/formatter.pyRçs$
	







cCsM|io|id=n|io|id}nd}|ii|ƒdS(Niÿÿÿÿ(R)RRR[(RRd((s%/usr/local/lib/python2.5/formatter.pyRös

cCs\|ii|ƒtd|iƒ}|o|o|d}n|ii|t|ƒƒdS(Niÿÿÿÿ(R*RYtfilterRRt
new_margintlen(RRtfstack((s%/usr/local/lib/python2.5/formatter.pyRÿs
cCsb|io|id=ntd|iƒ}|o|d}nd}|ii|t|ƒƒdS(Niÿÿÿÿ(R*ReRRRfRg(RRhR((s%/usr/local/lib/python2.5/formatter.pyRs
cCs||_|ii|ƒdS(N(RRtnew_spacing(RR((s%/usr/local/lib/python2.5/formatter.pyRs	cGs||io4d|_|_|_d|_|iidƒnx|D]}|ii|ƒqEW|iit	|iƒƒdS(NiiRP(
R-R0R.R,RRTR+RYt
new_stylesttuple(RRtstyle((s%/usr/local/lib/python2.5/formatter.pyRs
	icCs(|i|3|iit|iƒƒdS(N(R+RRjRk(RR ((s%/usr/local/lib/python2.5/formatter.pyR!scCs,||_|_d|_|_|_dS(Ni(R,R0R.R/R1(RR"((s%/usr/local/lib/python2.5/formatter.pyR#!sN(R$R%R&RRRRRRR8R=R>RRRRRRRRRRRR!R#(((s%/usr/local/lib/python2.5/formatter.pyR'=s,													
					
			RcBsƒeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(sMinimal writer interface to use in testing & inheritance.

    A writer which only provides the interface definition; no actions are
    taken on any methods.  This should be the base class for all writers
    which do not need to inherit any implementation methods.

    cCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pyR.scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pytflush/scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyRX0scCsdS(N((RRd((s%/usr/local/lib/python2.5/formatter.pyR[1scCsdS(N((RRtlevel((s%/usr/local/lib/python2.5/formatter.pyRf2scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyRi3scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyRj4scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyR35scCsdS(N((R((s%/usr/local/lib/python2.5/formatter.pyR26scOsdS(N((RR	R
((s%/usr/local/lib/python2.5/formatter.pyR47scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyR78scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyRT9scCsdS(N((RR((s%/usr/local/lib/python2.5/formatter.pyRW:s(R$R%R&RRmRXR[RfRiRjR3R2R4R7RTRW(((s%/usr/local/lib/python2.5/formatter.pyR&s												tAbstractWritercBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(s°A writer which can be used in debugging formatters, but not much else.

    Each method simply announces itself by printing its name and
    arguments on standard output.

    cCsd|fGHdS(Nsnew_alignment(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyRXEscCsd|fGHdS(Nsnew_font(%r)((RRd((s%/usr/local/lib/python2.5/formatter.pyR[HscCsd||fGHdS(Nsnew_margin(%r, %d)((RRRn((s%/usr/local/lib/python2.5/formatter.pyRfKscCsd|fGHdS(Nsnew_spacing(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyRiNscCsd|fGHdS(Nsnew_styles(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyRjQscCsd|fGHdS(Nssend_paragraph(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyR3TscCs	dGHdS(Nssend_line_break()((R((s%/usr/local/lib/python2.5/formatter.pyR2WscOs	dGHdS(Nssend_hor_rule()((RR	R
((s%/usr/local/lib/python2.5/formatter.pyR4ZscCsd|fGHdS(Nssend_label_data(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyR7]scCsd|fGHdS(Nssend_flowing_data(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyRT`scCsd|fGHdS(Nssend_literal_data(%r)((RR((s%/usr/local/lib/python2.5/formatter.pyRWcs(R$R%R&RXR[RfRiRjR3R2R4R7RTRW(((s%/usr/local/lib/python2.5/formatter.pyRo=s										t
DumbWritercBsSeZdZd	dd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(
s;Simple writer class which writes output on the file object passed in
    as the file parameter or, if file is omitted, on standard output.  The
    output is simply word-wrapped to the number of columns specified by
    the maxcol parameter.  This class is suitable for reflowing a sequence
    of paragraphs.

    iHcCs7|pti|_||_ti|ƒ|iƒdS(N(tsyststdouttfiletmaxcolRRtreset(RRsRt((s%/usr/local/lib/python2.5/formatter.pyRps	
cCsd|_d|_dS(Ni(tcoltatbreak(R((s%/usr/local/lib/python2.5/formatter.pyRuvs	cCs*|iid|ƒd|_d|_dS(Ns
i(RstwriteRvRw(RR((s%/usr/local/lib/python2.5/formatter.pyR3zs	cCs&|iidƒd|_d|_dS(Ns
i(RsRxRvRw(R((s%/usr/local/lib/python2.5/formatter.pyR2s	cOsM|iidƒ|iid|iƒ|iidƒd|_d|_dS(Ns
t-i(RsRxRtRvRw(RR	R
((s%/usr/local/lib/python2.5/formatter.pyR4„s
	cCsv|ii|ƒ|idƒ}|djod|_||d}n|iƒ}|it|ƒ|_d|_dS(Ns
ii(RsRxtrfindRvt
expandtabsRgRw(RRRF((s%/usr/local/lib/python2.5/formatter.pyRW‹s
	cCsè|pdSn|ip|diƒ}|i}|i}|ii}x~|iƒD]p}|oC|t|ƒ|jo|dƒd}q¤|dƒ|d}n||ƒ|t|ƒ}d}qTW||_|diƒ|_dS(Nis
RPiiÿÿÿÿ(RwRQRvRtRsRxRSRg(RRRwRvRtRxtword((s%/usr/local/lib/python2.5/formatter.pyRT•s&		





	N(R$R%R&RRRuR3R2R4RWRT(((s%/usr/local/lib/python2.5/formatter.pyRpgs					
cCsºtƒ}t|ƒ}|dj	ot|ƒ}n/tidottidƒ}n
ti}xF|iƒ}|pPn|djo|idƒqc|i	|ƒqc|idƒdS(Nis
i(
RpR'RtopenRqtargvtstdintreadlineRR(Rstwtftfptline((s%/usr/local/lib/python2.5/formatter.pyttestªs	
	
t__main__((((R&RqRRZRR'RRoRpR…R$(((s%/usr/local/lib/python2.5/formatter.pys<module>s"é*C


Man Man