config root man

Current Path : /compat/linux/proc/68247/root/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 : //compat/linux/proc/68247/root/usr/local/lib/python2.5/webbrowser.pyc

³ò
h”Rc@sºdZddkZddkZddkZddkZddkZddkZddddddgZdefd	„ƒYZ	hZ
gZdd
d„Z
dd„Zd
d
d„Zd„Zd„Zd
d„Zeid djo
d„Zn
d„Zd„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZeZd!efd"„ƒYZd#efd$„ƒYZd%efd&„ƒYZd'efd(„ƒYZ d)efd*„ƒYZ!d+„Z"ei#id,ƒoe"ƒnei#id-ƒo ed.ƒoe
d.ded.ƒƒned/ƒoe
d/ded/ƒƒned0ƒoe
d0ded0ƒƒned1ƒoe
d1ded1ƒƒq¿neid djokd2efd3„ƒYZ$gZhZ
x5dKD]-Z%ee%ƒoe
e%dee%ƒƒqüqüWe
d:e$ƒnyddk&Z&Wne'j
on+Xd;efd<„ƒYZ(e
d=e(d>dƒeid?jo3d@efdA„ƒYZ)e
d@de)dBƒdƒneid dCjo?ed8ƒo2gZhZ
e
dDdedEd8dFgƒdƒndGei#jobei#dGi*ei+ƒZ,e,i-ƒx,e,D]$Z.e.dHjoee.dƒq]q]WdZ.[.[,ndI„Z/e0dJjoe/ƒndS(Ls?Interfaces for launching and remotely controlling Web browsers.iÿÿÿÿNtErrortopentopen_newtopen_new_tabtgettregistercBseZRS((t__name__t
__module__(((s&/usr/local/lib/python2.5/webbrowser.pyRsicCsY||gt|iƒ<|djoti|ƒn"|djotid|ƒndS(s9Register a browser connector and, optionally, connection.iN(t	_browserstlowert	_tryordertappendtinsert(tnametklasstinstancetupdate_tryorder((s&/usr/local/lib/python2.5/webbrowser.pyRs


cCs|dj	o
|g}nt}xÎ|D]Æ}d|jo@ti|ƒ}|ddjot|d ƒSqít|ƒSq'yt|iƒ}Wntj
ot	|ƒ}nX|ddj	o|dSq'|ddj	o|dƒSq'q'Wt
dƒ‚dS(sCReturn a browser launcher instance appropriate for the environment.s%siÿÿÿÿt&iis!could not locate runnable browserN(tNoneR
tshlextsplittBackgroundBrowsertGenericBrowserRR	tKeyErrort_synthesizeR(tusingtalternativestbrowsertcommand((s&/usr/local/lib/python2.5/webbrowser.pyRs&


icCs?x8tD]0}t|ƒ}|i|||ƒotSqqWtS(N(R
RRtTruetFalse(turltnewt	autoraiseR
R((s&/usr/local/lib/python2.5/webbrowser.pyR:scCs
t|dƒS(Ni(R(R((s&/usr/local/lib/python2.5/webbrowser.pyRAscCs
t|dƒS(Ni(R(R((s&/usr/local/lib/python2.5/webbrowser.pyRDsc	Csü|iƒd}t|ƒpddgSntii|ƒ}yt|iƒ}Wntj
oddgSnX|d}|op|iƒ|ijoZddk	}|i	|ƒ}||_
tii|ƒ|_t|d||ƒd|gSnddgS(s¾Attempt to synthesize a controller base on existing controllers.

    This is useful to create a controller when a user specifies a path to
    an entry in the BROWSER environment variable -- we can copy a general
    controller to operate using a specific installation of the desired
    browser in this way.

    If we can't create a controller in this way, or if there is no
    executable for the requested browser, return [None, None].

    iiiÿÿÿÿN(Rt
_iscommandRtostpathtbasenameRR	RtcopyR
R(RRtcmdR
Rt
controllerR&((s&/usr/local/lib/python2.5/webbrowser.pyRHs"

	itwincCsk|iƒ}tii|ƒo|idƒotSnx-dD]%}tii||ƒotSq>q>WtS(Ns.exes.bat(s.exes.bat(s.exes.bat(R	R#R$tisfiletendswithRR(R'text((s&/usr/local/lib/python2.5/webbrowser.pyt
_isexecutableis#cCsctii|ƒoLti|ƒti}|ti@p|ti@p|ti@otSq_nt	S(N(
R#R$R*tstattST_MODEtS_IXUSRtS_IXGRPtS_IXOTHRR(R'tmode((s&/usr/local/lib/python2.5/webbrowser.pyR-rs
*cCst|ƒotSntiidƒ}|ptSnxD|itiƒD]0}tii	||ƒ}t|ƒotSqIqIWtS(sSReturn True if cmd is executable or can be found on the executable
    search path.tPATH(
R-RR#tenvironRRRtpathsepR$tjoin(R'R$tdtexe((s&/usr/local/lib/python2.5/webbrowser.pyR"ys

tBaseBrowsercBsDeZdZdgZdd„Zddd„Zd„Zd„ZRS(	s3Parent class for all browsers. Do not use directly.s%stcCs||_||_dS(N(R
R%(tselfR
((s&/usr/local/lib/python2.5/webbrowser.pyt__init__s	iicCs
t‚dS(N(tNotImplementedError(R<RR R!((s&/usr/local/lib/python2.5/webbrowser.pyR“scCs|i|dƒS(Ni(R(R<R((s&/usr/local/lib/python2.5/webbrowser.pyR–scCs|i|dƒS(Ni(R(R<R((s&/usr/local/lib/python2.5/webbrowser.pyR™s(RRt__doc__targsR=RRR(((s&/usr/local/lib/python2.5/webbrowser.pyR:Šs		RcBs&eZdZd„Zddd„ZRS(sVClass for all browsers started with a command
       and without remote functionality.cCs_t|tƒo||_dg|_n|d|_|d|_tii|iƒ|_dS(Ns%sii(t
isinstancet
basestringR
R@R#R$R%(R<R
((s&/usr/local/lib/python2.5/webbrowser.pyR=¡s	

iic
Cs£|igg}|iD]}||id|ƒq~}yKtid djoti|ƒ}nti|dtƒ}|iƒSWnt	j
ot
SnXdS(Ns%siR)t	close_fds(R
R@treplacetsystplatformt
subprocesstPopenRtwaittOSErrorR(R<RR R!t_[1]targtcmdlinetp((s&/usr/local/lib/python2.5/webbrowser.pyR«s*(RRR?R=R(((s&/usr/local/lib/python2.5/webbrowser.pyRs	
RcBseZdZddd„ZRS(sHClass for all browsers which are to be started in the
       background.iic	CsÝ|igg}|iD]}||id|ƒq~}y…tid djoti|ƒ}nKttddƒ}|pttddƒ}nti|dt
d|ƒ}|iƒdjSWntj
ot
SnXdS(Ns%siR)tsetsidtsetpgrpRCt
preexec_fn(R
R@RDRERFRGRHtgetattrR#RRtpollRJR(	R<RR R!RKRLRMRNRO((s&/usr/local/lib/python2.5/webbrowser.pyR¼s*(RRR?R(((s&/usr/local/lib/python2.5/webbrowser.pyR¸stUnixBrowsercBsVeZdZdZddgZdZdZdZe	Z
eZd„Z
ddd„ZRS(s=Parent class for all Unix browsers with remote functionality.s%actions%scCs g}|oA|io7tt|ƒƒ}|i|}|o
|g}qNn|ig||}|p
|iottidƒ}nd}t	tddƒ}|pt	tddƒ}nt
i|dtd|d|i
o|pdd|d|ƒ}	|oatid	ƒ|	iƒ}
|
djo2tid
ƒ|	iƒ}
|
djotSq[n|
Sn9|io#|	iƒdjotSqœtSn|	iƒSdS(Nsr+RORPRCtstdintstdouttstderrRQii(t
raise_optstinttboolR
t
backgroundtfileR#tdevnullRRRRGRHRtredirect_stdoutttimetsleepRSRRI(R<R@tremoteR!t	raise_opttoptRMtinoutRORNtrc((s&/usr/local/lib/python2.5/webbrowser.pyt_invoke×s<




	
iic
Cs&|djo
|i}nf|djo
|i}nL|djo*|idjo
|i}q|i}ntdd|ƒ‚g}|iD]%}||id|ƒid|ƒq~}|i|t|ƒ}|pGg}	|i	D]}|	|id|ƒqå~	}|i|t
t
ƒSntSdS(NiiisBad 'new' parameter to open(); sexpected 0, 1, or 2, got %ss%ss%action(t
remote_actiontremote_action_newwintremote_action_newtabRRtremote_argsRDRfRR@R(
R<RR R!tactionRKRLR@tsuccesst_[2]((s&/usr/local/lib/python2.5/webbrowser.pyRs"






50N(RRR?RRXRjRgRhRiRR[RR^RfR(((s&/usr/local/lib/python2.5/webbrowser.pyRTÌs	,tMozillacBs>eZdZddgZddgZdZdZdZeZ	RS(s-Launcher class for Mozilla/Netscape browsers.s-noraises-raises-remotesopenURL(%s%action)R;s,new-windows,new-tab(
RRR?RXRjRgRhRiRR[(((s&/usr/local/lib/python2.5/webbrowser.pyRnstGaleoncBs8eZdZddgZddgZdZdZeZRS(s,Launcher class for Galeon/Epiphany browsers.s-noraiseR;s%actions%ss-ns-w(	RRR?RXRjRgRhRR[(((s&/usr/local/lib/python2.5/webbrowser.pyRo+stOperacBs>eZdZddgZddgZdZdZdZeZ	RS(s!Launcher class for Opera browser.R;s-raises-remotesopenURL(%s%action)s,new-windows	,new-page(
RRR?RXRjRgRhRiRR[(((s&/usr/local/lib/python2.5/webbrowser.pyRp6stElinkscBs8eZdZddgZdZdZdZeZeZ	RS(s#Launcher class for Elinks browsers.s-remotesopenURL(%s%action)R;s,new-windows,new-tab(
RRR?RjRgRhRiRR[R^(((s&/usr/local/lib/python2.5/webbrowser.pyRqBst	KonquerorcBseZdZddd„ZRS(s±Controller for the KDE File Manager (kfm, or Konqueror).

    See the output of ``kfmclient --commands``
    for more information on the Konqueror remote-control interface.
    iicCs‰|djo
d}nd}ttidƒ}ttddƒ}|pttddƒ}ny4tid||gdtd	|d
|d|ƒ}Wntj
onX|i	ƒtSy:tidd
|gdtd	|d
|d|d|ƒ}Wntj
onX|i
ƒdjotSny:tidd|gdtd	|d
|d|d|ƒ}Wntj
otSnX|i
ƒdjSdS(NitnewTabtopenURLsr+RORPt	kfmclientRCRURVRWt	konquerors--silentRQtkfms-d(R\R#R]RRRRGRHRRJRIRSR(R<RR R!RkR]RORN((s&/usr/local/lib/python2.5/webbrowser.pyRWs@




	(RRR?R(((s&/usr/local/lib/python2.5/webbrowser.pyRrPstGrailcBs)eZd„Zd„Zddd„ZRS(c
Csddk}ddk}ddk}ddk}tii|iƒdƒ}|iti	ƒƒd}tii||dƒ}|i|ƒ}|pdSn|i|i|iƒ}	xc|D][}
y|	i
|
ƒWn=|ij
o.yti|
ƒWqtj
oqXqºX|	SqºWdS(Niÿÿÿÿs.grail-unixis-*(tglobtpwdtsocketttempfileR#R$R7t
gettempdirtgetpwuidtgetuidRtAF_UNIXtSOCK_STREAMtconnectterrortunlinktIOError(R<RyRzR{R|ttempdirtusertfilenametmaybeststfn((s&/usr/local/lib/python2.5/webbrowser.pyt_find_grail_rcs,	
cCs6|iƒ}|pdSn|i|ƒ|iƒdS(Nii(RŒtsendtclose(R<RkRŠ((s&/usr/local/lib/python2.5/webbrowser.pyt_remote§s

iicCs5|o|id|ƒ}n|id|ƒ}|S(NsLOADNEW sLOAD (R(R<RR R!tok((s&/usr/local/lib/python2.5/webbrowser.pyR¯s(RRRŒRR(((s&/usr/local/lib/python2.5/webbrowser.pyRx‰s		c	CsÓtdƒond}ti|ƒ}|iƒiƒ}|iƒ}|djo*|o#tddtt	i
|ƒƒƒq{nx5dD]-}t|ƒot|dt|ƒƒq‚q‚Wtdƒotdttdƒƒn(tdƒotdttdƒƒnx5dD]-}t|ƒot|dt
|ƒƒqqWtdƒotddtdƒƒntdƒotddtdƒƒntdƒotddtdƒƒntdƒotdtdƒndS(Nsgconftool-2sCgconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/nulltgnomesmozilla-firefoxtfirefoxsmozilla-firebirdtfirebirdt	seamonkeytmozillatnetscapeRwRvtgaleontepiphanyt	skipstonetoperatmosaictgrail(smozilla-firefoxR’smozilla-firebirdR“R”R•R–(R—R˜(R"R#tpopentreadtstripRŽRRRRRRnRrRoRpRx(tgctouttcommdtretncodeR((s&/usr/local/lib/python2.5/webbrowser.pytregister_X_browsers¾s:
'







tDISPLAYtTERMtlinkstelinkstlynxtw3mtWindowsDefaultcBseZddd„ZRS(iicCsti|ƒtS(N(R#t	startfileR(R<RR R!((s&/usr/local/lib/python2.5/webbrowser.pyRs
(RRR(((s&/usr/local/lib/python2.5/webbrowser.pyR«sR’R“R”R•R–Ršswindows-defaulttInternetConfigcBseZddd„ZRS(iicCsti|ƒtS(N(tict	launchurlR(R<RR R!((s&/usr/local/lib/python2.5/webbrowser.pyRs
(RRR(((s&/usr/local/lib/python2.5/webbrowser.pyR­ssinternet-configRtdarwintMacOSXcBs&eZdZd„Zddd„ZRS(s{Launcher class for Aqua browsers on Mac OS X

        Optionally specify a browser name on instantiation.  Note that this
        will not work for Aqua browsers if the user has moved the application
        package after installation.

        If no browser is specified, the default browser, as specified in the
        Internet System Preferences panel, will be used.
        cCs
||_dS(N(R
(R<R
((s&/usr/local/lib/python2.5/webbrowser.pyR=.siic	Csd|jpt‚d|jod|}ntt|ƒƒ}|idjod|iddƒ}nU|idjo
d	}nd
|d}d|iddƒ}d
|i||f}tiddƒ}|djotSn|i	|ƒ|i
ƒ}|S(Nt't:sfile:tdefaultsopen location "%s"t"s%22tOmniWebR;stoWindow %disOpenURL "%s"s‰tell application "%s"
                                activate
                                %s %s
                            end tellt	osascripttw(tAssertionErrorRYRZR
RDR#RRRtwriteRŽ(	R<RR R!tscriptttoWindowR'tosapipeRe((s&/usr/local/lib/python2.5/webbrowser.pyR1s"



(RRR?R=R(((s&/usr/local/lib/python2.5/webbrowser.pyR±$s		R´tos2tos2netscapetstarts%stBROWSERR;c	
Csddk}dtid}y#|itiddƒ\}}Wn?|ij
o0}ti|IJti|IJtidƒnXd}xB|D]:\}}|djo
d}q|djo
d}qqWt|ƒdjoti|IJtidƒn|d}t||ƒd	GHdS(
NiÿÿÿÿsDUsage: %s [-n | -t] url
    -n: open new window
    -t: open new tabiitntds-ns-tis(tgetoptREtargvRƒRWtexittlenR(	RÃtusagetoptsR@tmsgtnew_wintotaR((s&/usr/local/lib/python2.5/webbrowser.pytmaints*#







t__main__(sfirefoxsfirebirds	seamonkeysmozillasnetscapesopera(1R?R#RRER.RGR_t__all__t	ExceptionRRR
RRRRRRRRFR-R"tobjectR:RRRTRntNetscapeRoRpRqRrRxR¤R5R«RR®tImportErrorR­R±RR6t_userchoicestreverseRMRÍR(((s&/usr/local/lib/python2.5/webbrowser.pys<module>s 		 
			P95	0




0!	

	


Man Man