config root man

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

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/test/test_fileinput.pyc

³ò
h”Rc)@sdZddklZlZlZlZddkZddkZddkZddk	l	Z	ddk
lZlZdd„Z
eidƒZd	„Zd
d
d„Zd„ZxUd7d8fD]G\ZZz$eƒetttteeƒWdettttƒXq»Weo	dGHnz(e
d
dgƒae
ddgƒae
ddgƒae
ddgƒaedttttfƒZeiƒZeedjƒeeiƒd
jƒeeiƒd
jƒeeiƒtjƒeiƒZeeƒeeiƒd
jƒeeiƒd
jƒeeiƒtjƒeiƒWdettttƒXeo	dGHnz—e
d
dgƒae
ddgƒaedttfƒZe eƒZ!ee!ddddddgjƒeeiƒdjƒeeiƒdjƒWdettƒXeo	d GHnzse
d
d!gƒaei"ƒZ#e#djo
d"Z#nede%te#ƒƒZe eƒZ!ee!dd#gjƒWdetƒXeo	d$GHnz·e
d
d!gƒae
dd%gƒaedttfƒZeei&ƒdjƒei'ƒZeei&ƒdjƒei(ƒeei&ƒdjƒe eƒZeei&ƒdjƒWdettƒXeo	d&GHnyed'dƒZed(ƒ‚Wne)j
onXzYe
d
d)gd'd*ƒaedtd'd+ƒZe eƒZ!ee!ddd,d-gjƒWdetƒXeo	d.GHny(ed/d
d0d1„ƒZed2ƒ‚Wne)j
onXyed0d
ƒZed3ƒ‚Wne)j
onXzYe
d
d!gd'd*ƒaedtd0ed4ƒƒZe eƒZ!ee!d5d6gjƒWdetƒXdS(9s,
Tests for fileinput module.
Nick Mathewson
iÿÿÿÿ(tverifytverbosetTESTFNt
TestFailedN(tStringIO(t	FileInputthook_encodedtwcCs:tt|ƒ}t||ƒ}|i|ƒ|iƒ|S(N(Rtstrtopent
writelinestclose(titlinestmodetnametf((s//usr/local/lib/python2.5/test/test_fileinput.pytwriteTmps


sLINE (\d+) OF FILE (\d+)cGs0x)|D]!}yti|ƒWqqXqWdS(N(tostunlink(tnamesR((s//usr/local/lib/python2.5/test/test_fileinput.pytremove_tempfilessicCs‰d|d}tod|d|fGHntd||||fd|ƒ}t|ƒ}|iƒtt|ƒdjƒt|dd	jƒt|d
djƒt|iƒdjƒt|iƒ|jƒtod|d|fGHntd||||fd|ƒ}d
}	x%|	o|	djo|iƒ}	qWt|iƒ|jƒt|iƒdjƒt|i	ƒdjƒt|i
ƒƒt|iƒƒtod|d|fGHn|iƒt|iƒdjƒt|iƒdjƒ|iƒtod|d|fGHntd||||dfd|ƒ}t
i}
zitdƒt
_t|ƒ}tt|ƒdjƒt|ddjƒt|iƒdjƒ|iƒWd|
t
_Xtod|d|fGHntd||||fd|ƒ}t|iƒdjƒt|iƒdjƒ|iƒt|iƒdjƒt|iƒdjƒtod|d|fGHnt
i}z[td||||fddd|ƒ}x#|D]}|d  iƒ}|GHq¶W|iƒWd|t
_Xtd||||fd|ƒ}xj|D]b}t|d d!jƒti|d  ƒ}
t|
djƒtt|
idƒƒ|i	ƒjƒqW|iƒdS("Niis%s. Simple iteration (bs=%s)itfilestbufsizeiisLine 5 of file 1
isLine 1 of file 4
s%s. Status variables (bs=%s)txsLine 6 of file 2
is%s. Nextfile (bs=%s)isLine 1 of file 3
is%s. Stdin (bs=%s)it-s Line 1 of stdin
Line 2 of stdin
i!i sLine 2 of stdin
s<stdin>s%s. Boundary conditions (bs=%s)s%s. Inplace (bs=%s)itinplaceiÿÿÿÿs
(RRtlistRRtlentlinenotfilenametreadlinet
filelinenotisfirstlinetisstdintnextfiletsyststdinRtNonetstdouttuppertpattmatchtinttgroup(tt1tt2tt3tt4tbstroundtstarttfiR
tst	savestdint
savestdouttlinetm((s//usr/local/lib/python2.5/test/test_fileinput.pytrunTests"sˆ!
!

$	
!
	'	
!)cCsätdg}tdƒD]}|d|dq~ƒatdg}tdƒD]}|d|dqO~ƒatdg}tdƒD]}|d	|dq‡~ƒatd
g}tdƒD]}|d|dq¿~ƒadS(NiisLine %s of file 1
ii
sLine %s of file 2
iisLine %s of file 3
isLine %s of file 4
(RtrangeR-R.R/R0(t_[1]Rt_[2]t_[3]t_[4]((s//usr/local/lib/python2.5/test/test_fileinput.pyt
writeFilesns888iis13. 0-byte filestiisThe only line there is.
iRs%14. Files that don't end with newlinesA
B
CsD
E
FsA
sB
tCsD
sE
tFis15. Unicode filenamessA
BtasciitBs16. fileno()sC
Ds17. Specify opening modeRs-FileInput should reject invalid mode argumentsA
B
C
DtwbtUsC
tDs18. Test file opening hookRtopenhookcCsdS(N(R&(RR9((s//usr/local/lib/python2.5/test/test_fileinput.pyt<lambda>ÓssGFileInput should raise if both inplace and openhook arguments are givens2FileInput should check openhook for being callabletrot13sN
tO(ii(ii(*t__doc__ttest.test_supportRRRRR$RtreRt	fileinputRRRtcompileR)RR:R@R2R1R-R.R/R0R4RR8RR RRRR
tgetfilesystemencodingtencodingR&tunicodetfilenotnextR#t
ValueError(((s//usr/local/lib/python2.5/test/test_fileinput.pys<module>sÌ"$		L	
		"	

	
	 	

Man Man