config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/

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 : //compat/linux/proc/self/root/usr/local/lib/python2.5/idlelib/IOBinding.pyc

hRc@sddkZddkZddkZddkZddkZddkZddkZddkZddkTddk	l	Z	ddk
lZyddklZWne
j
o
dZnXy#ddkZeieidWne
eifj
onXeiZdZeid	jo;y!eid
ZeieWnej
onXnyGeieiZeejp
edjo
dZneieWn}eeefj
ohyEeid
Zeejp
edjo
dZneieWneefj
onXnXeiZei dZ!de	fd
YZ"dZ#dfdYZ$dZ%e&djoe%ndS(iN(t*(tSimpleDialog(tidleConf(tBOM_UTF8sttasciitwin32iscoding[:=]\s*([-\w_.]+)tEncodingMessagecBs)eZdZdZdZdZRS(s3Inform user that an encoding declaration is needed.c
Cst|_t||_}|id|i|id|i|id|i|i	d|i
d||_t|dd}|i
dtdtt|d	d
}|idd||i
dtdtd
tt|dd|}|i
dtdtt|}|i
dtd
td|_|_t|ddddd|i}|i
dtd
tddt|ddd|i}	|	i
dtd
tdd|i|dS(Ns<Return>s<Escape>tWM_DELETE_WINDOWsI/O Warningttexts:Non-ASCII found, yet no encoding declared. Add a line liketsidetanchortfonttcourieris# -*- coding: %s -*-tfills`to your file
Choose OK to save this file as %s
Edit your general options to silence this warningtOktdefaulttactivetcommandtexpandisEdit my file(tFalsetshould_edittTopleveltroottbindtreturn_eventtdo_oktprotocoltwm_delete_windowtwm_titletwm_iconnamettoptLabeltpacktTOPtWtEntrytinserttXtFrameRtcanceltButtontLEFTtBOTHtdo_editt_set_transient(
tselftmastertencRtl1tl2tl3tbuttonstb1tb2((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyt__init__Ms6	

			
cCs|iddS(Ni(tdone(R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRsscCs|iddS(Ni(R8(R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR,vs(t__name__t
__module__t__doc__R7RR,(((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRKs	&	cCs|idd }di|}ti|}|pdSn|id}ddk}y|i|Wn tj
otd|nX|S(szReturn the encoding declaration according to PEP 263.

    Raise LookupError if the encoding is declared but unknown.
    s
iiiNsUnknown encoding (	tsplittjoint	coding_retsearchtNonetgrouptcodecstlookuptLookupError(tstrtmatchtnameRB((s-/usr/local/lib/python2.5/idlelib/IOBinding.pytcoding_specyst	IOBindingcBs"eZdZdZdZdZdZdZdZ	dZ
dZdZdddZ
dZeieZeiZd	Zd
ZdZdZd
ZdZdZdZdZdZdZdZ dd d!gZ!dZ"ddZ#dZ$dZ%RS("cCs||_|i|_|iid|i|_|iid|i|_|iid|i|_|iid|i	|_
d|_|iid|i
|_dS(Ns<<open-window-from-file>>s<<save-window>>s<<save-window-as-file>>s<<save-copy-of-window-as-file>>s<<print-window>>(teditwinR	Rtopent_IOBinding__id_opentsavet_IOBinding__id_savetsave_ast_IOBinding__id_saveastsave_a_copyt_IOBinding__id_savecopyR@tfileencodingtprint_windowt_IOBinding__id_print(R.RJ((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR7s		cCs|iid|i|iid|i|iid|i|iid|i|iid|id|_d|_d|_	dS(Ns<<open-window-from-file>>s<<save-window>>s<<save-window-as-file>>s<<save-copy-of-window-as-file>>s<<print-window>>(
R	tunbindRLRNRPRRRUR@RJtfilename_change_hook(R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pytcloses		cCs
|iiS(N(RJt	get_saved(R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRYscCs|ii|dS(N(RJt	set_saved(R.tflag((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRZscCs|iidS(N(RJt
reset_undo(R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR\scCs
||_dS(N(RW(R.thook((s-/usr/local/lib/python2.5/idlelib/IOBinding.pytset_filename_change_hookscCsk|o)tii|od|_||_n8||_d|_|id|io|indS(Ni(tostpathtisdirR@tfilenametdirnameRZRW(R.Rb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pytset_filenames	
		

cCs?|iio|p|i}n|}|oty|ii}Wn
d}nX|io2|io%|o|iii||iq|iii|n|i	i
dSn|io2|i}|djo|i	i
dSqn|p|i}n|}|o|i|n|i	i
dS(NtbreakR((RJtflisttaskopenfiletinterpR@RbRYRKtloadfileR	t	focus_sett	maybesave(R.teventteditFileRbRhtreply((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRKs4

 




s(\r\n)|\n|\rcCsay)t|d}|i}|iWn8tj
o,}tidt|d|itSnX|i	|}|i
i|}|oW|id|_
t|i
to|i
id|_
n|i
id|}n|iidd|id|iid||i|i||iid	d|iid	|i|tS(
Ntrbs	I/O ErrorR/iRs\ns1.0tendR%(RKtreadRXtIOErrorttkMessageBoxt	showerrorRER	Rtdecodeteol_reR?RAteol_conventiont
isinstancetunicodetencodetsubtdeleteRdR@R%R\tmark_settseetupdaterecentfileslisttTrue(R.Rbtftcharstmsgtfirsteol((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRis.	



cCs2|itoBy|did}Wntj
o|SqRXt|_|Snyt|}Wn>tj
o2}tidddd|d|i	d	}nX|o+yt||SWqtj
oqXnyt|dSWntj
onXyt|t}t|_Wntj
onX|S(
sMCreate a Unicode string

        If that fails, let Tcl try its best
        isutf-8ttitlesError loading the filetmessages^The encoding '%s' is not known to this Python installation. The file may not display correctlyR/RN(
t
startswithRRutUnicodeErrorRSRHRDRsRtR	R@Rytencoding(R.RR0RG((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRus>			
	
cCs|iodSnd|ipd}tiddd|dtidtid	|i}|i}|djo(|id|ip
d
}qn|ii
|S(Ntyess&Do you want to save %s before closing?sthis untitled documentRs
Save On CloseRticonttypeR/R((RYRbRstMessagetQUESTIONtYESNOCANCELR	tshowRMR@Rj(R.RtmRn((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRk>s"
			



cCsw|ip|i|nL|i|io8|idy|iiWqftj
oqfXn|iidS(NiRe(	RbROt	writefileRZRJtstore_file_breakstAttributeErrorR	Rj(R.Rl((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRMQs

	
cCs|i}|oY|i|oE|i||idy|iiWqhtj
oqhXqln|ii|i	|dS(NiRe(
tasksavefileRRdRZRJRRR	RjR(R.RlRb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRO^s




cCsB|i}|o|i|n|ii|i|dS(NRe(RRR	RjR(R.RlRb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRQls

cCs|i|i|iidd}|idjo|id|i}ny8t|d}|i||i|i	t
SWn8tj
o,}ti
dt|d|itSnXdS(Ns1.0send-1cs
twbs	I/O ErrorR/(tfixlastlineRzR	tgetRwtreplaceRKtwritetflushRXRRrRsRtRER(R.RbRRR((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRts




c
Cst|tio|Sny|idSWntj
onXyt|}d}Wn!tj
o}|}d}nX|o5y|i|SWqtj
od|}qXn|o!ti	dd|d|i
n|itjp|ot|idSn|io_y|i|iSWqutj
o8ti	dd|id|i
t|idSquXnt
idd	d
}|djot|idSnt}y0|it}t}|djo
t}nWn,tj
o t|id}d}nX|p|Snt|ii|}|i|idjoyd
|}|i
idd}	|	ido|i
id|n|i
id||i|i
iddSn|S(NRsInvalid encoding '%s's	I/O Errors%s. Saving as UTF-8R/sutf-8s1Cannot save this as '%s' anymore. Saving as UTF-8tmaintEditorWindowRtlocaleis# -*- coding: %s -*-
s1.0s2.0s#!send-1c(Rxttypest
StringTypeRzRRHR@RDRsRtR	RSRRt	GetOptionRRRRRJRtgotnumRRR%(
R.RR0tfailedRtconfig_encodingtask_usertdialogtenclinet	firstline((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRzsv




	



 cCs:|iid}|djo|iiddndS(Nsend-2cs
send-1c(R	RR%(R.tc((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRs
c
Csd}|i}|o
|i}n|p
|djoTtidd\}}|}ti||i|pti|dSqnti	}d}|djo#t
iddd}|d	}n-|d
jot
iddd}nd}|o||}ti|d
}	|	i
i}
|	i}|od||
}
n|
o1dt||
}
tid|
d|iqn$d|}tid|d|i|oti|ndS(Ntprefixt	IDLE_tmp_ReitposixRtGeneralsprint-command-posixs 2>&1tntsprint-command-winitrs#Printing failed (exit status 0x%x)
sPrinting command: %s
sPrint statusR/s-Printing is not enabled for this platform: %s(R@RYRbttempfiletmkstempR_RXRtunlinkRGRRtpopenRqtstriptreprRsRtR	tshowinfo(
R.RlttempfilenametsavedRbttfdtplatformt
printPlatformRtpipetoutputtstatusR((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRTsH


	
	

!
sPython and text filess*.py *.pyw *.txttTEXTsAll text filesRs	All filescCs|id\}}|ip%tid|id|i|_n|iid|d|}t|to|i	t
}n|S(NRKR/t	filetypest
initialdirtinitialfile(tdefaultfilenamet
opendialogttkFileDialogtOpenR	RRRxRyRztfilesystemencoding(R.tdirtbaseRb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRgs
RKcCsy|iotii|iSnU|io|idfSn:yti}Wntij
o
d}nX|dfSdS(NR(RbR_R`R<Rctgetcwdterror(R.tmodetpwd((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRs

cCs|id\}}|ip%tid|id|i|_n|iid|d|}t|to|i	t
}n|S(NRMR/RRR(Rt
savedialogRtSaveAsR	RRRxRyRzR(R.RRRb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRs
cCs|ii|dS(s-Update recent file list on all editor windowsN(RJtupdate_recent_files_list(R.Rb((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR'sN(sPython and text filess*.py *.pyw *.txtR(sAll text filesRR(s	All filesR(&R9R:R7RXRYRZR\R@RWR^RbRcRdRKteoltretcompileRvR_tlinesepRwRiRuRkRMRORQRRzRRTRRRRgRRR(((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRIsB							(			-		
				J		+		
	
cCsbt}dddY}t|}|i|i||}t|}|idS(Nt	MyEditWincBsPeZdZdZdZdZdZdZdZdZ	RS(cSsn||_d|_|iid|i|iid|i|iid|i|iid|idS(Ns<Control-o>s<Control-s>s<Alt-s>s<Alt-z>(R	R@RfRRKRMRORQ(R.R	((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR7.s		cSsdS(Ni((R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRY5scSsdS(N((R.R[((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRZ6scSsdS(N((R.((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR\7scSs|iiddS(Ns<<open-window-from-file>>(R	tevent_generate(R.Rl((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRK8scSs|iiddS(Ns<<save-window>>(R	R(R.Rl((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRM:scSs|iiddS(Ns<<save-window-as-file>>(R	R(R.Rl((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRO<scSs|iiddS(Ns<<save-copy-of-window-as-file>>(R	R(R.Rl((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyRQ>s(
R9R:R7RYRZR\RKRMRORQ(((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyR-s							((tTktTextR!RjRItmainloop(RRR	RJtio((s-/usr/local/lib/python2.5/idlelib/IOBinding.pyttest+s	

t__main__('R_RtsysRBRRRsRtTkinterRt
configHandlerRRtImportErrorRt	setlocaletLC_CTYPEtErrortgetfilesystemencodingRRRtgetdefaultlocaleRCRDtnl_langinfotCODESETR@t	NameErrorRt
ValueErrortlowerRR>RRHRIRR9(((s-/usr/local/lib/python2.5/idlelib/IOBinding.pys<module>sb
	


.		


Man Man