Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python2.7/



⬆️ Go up: /lib64

πŸ“„ Viewing: webbrowser.pyc

οΏ½
zfc@sWdZddlZddlZddlZddlZddlZddlZddddddgZdefd	οΏ½οΏ½YZ	iZ
gZdd
dοΏ½Z
ddοΏ½Zd
edοΏ½ZdοΏ½ZdοΏ½Zd
dοΏ½Zejd dkrοΏ½dοΏ½Zn	dοΏ½ZdοΏ½ZdefdοΏ½οΏ½YZdefdοΏ½οΏ½YZdefdοΏ½οΏ½YZdefdοΏ½οΏ½YZdefd οΏ½οΏ½YZeZd!efd"οΏ½οΏ½YZd#efd$οΏ½οΏ½YZeZ d%efd&οΏ½οΏ½YZ!d'efd(οΏ½οΏ½YZ"d)efd*οΏ½οΏ½YZ#d+efd,οΏ½οΏ½YZ$d-οΏ½Z%ej&jd.οΏ½r$e%οΏ½nej&jd/οΏ½rοΏ½ed0οΏ½r[e
d0ded0οΏ½οΏ½ned1οΏ½rοΏ½e
d1ded1οΏ½οΏ½ned2οΏ½rοΏ½e
d2de"d2οΏ½οΏ½ned3οΏ½rοΏ½e
d3ded3οΏ½οΏ½ned4οΏ½rοΏ½e
d4ded4οΏ½οΏ½qοΏ½nejd dkrοΏ½d5efd6οΏ½οΏ½YZ'gZiZ
e
d7e'οΏ½ej(j)ej&jd8d9οΏ½d:οΏ½Z*xKd;d<d=d>d?d@e*fD]+Z+ee+οΏ½rte
e+dee+οΏ½οΏ½qtqtWnejdAkrHdBefdCοΏ½οΏ½YZ,dDefdEοΏ½οΏ½YZ-e
dFde-dFοΏ½dοΏ½e
d;de-d;οΏ½dοΏ½e
dGde-dGοΏ½dοΏ½e
dBde-dHοΏ½dοΏ½nejd dIkrοΏ½ed?οΏ½rοΏ½gZiZ
e
dJdedKd?dLgοΏ½dοΏ½ndMej&kr4ej&dMj.ej/οΏ½Z0e0j1οΏ½xXe0D]PZ2e2dNkrοΏ½ee2dοΏ½Z3e3d
dkr!e
e2dee2οΏ½dοΏ½q!qοΏ½qοΏ½WdZ2[2[0ndOοΏ½Z4e5dPkrSe4οΏ½ndS(Qs?Interfaces for launching and remotely controlling Web browsers.iοΏ½οΏ½οΏ½οΏ½NtErrortopentopen_newtopen_new_tabtgettregistercBseZRS((t__name__t
__module__(((s"/usr/lib64/python2.7/webbrowser.pyRsicCsU||gt|jοΏ½<|dkr2tj|οΏ½n|dkrQtjd|οΏ½ndS(s9Register a browser connector and, optionally, connection.iN(t	_browserstlowert	_tryordertappendtinsert(tnametklasstinstancetupdate_tryorder((s"/usr/lib64/python2.7/webbrowser.pyRs
cCsοΏ½|dk	r|g}nt}xοΏ½|D]οΏ½}d|krqtj|οΏ½}|ddkrdt|d οΏ½St|οΏ½Sq%yt|jοΏ½}Wntk
rοΏ½t	|οΏ½}nX|ddk	rοΏ½|dS|ddk	r%|dοΏ½Sq%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/lib64/python2.7/webbrowser.pyRs$


icCs:x3tD]+}t|οΏ½}|j|||οΏ½rtSqWtS(N(R
RRtTruetFalse(turltnewt	autoraiseR
R((s"/usr/lib64/python2.7/webbrowser.pyR:s

cCs
t|dοΏ½S(Ni(R(R((s"/usr/lib64/python2.7/webbrowser.pyRAscCs
t|dοΏ½S(Ni(R(R((s"/usr/lib64/python2.7/webbrowser.pyRDscCsοΏ½|jοΏ½d}t|οΏ½s&ddgStjj|οΏ½}yt|jοΏ½}Wntk
rfddgSX|d}|rοΏ½|jοΏ½|jkrοΏ½ddl	}|j	|οΏ½}||_
tjj|οΏ½|_t|d||οΏ½d|gSddgS(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/lib64/python2.7/webbrowser.pyRHs"


	
itwincCs`|jοΏ½}tjj|οΏ½r1|jdοΏ½r1tSx(dD] }tjj||οΏ½r8tSq8WtS(Ns.exes.bat(s.exes.bat(s.exes.bat(R	R#R$tisfiletendswithRR(R'text((s"/usr/lib64/python2.7/webbrowser.pyt
_isexecutableis!
cCsZtjj|οΏ½rVtj|οΏ½tj}|tj@sO|tj@sO|tj@rVtSnt	S(N(
R#R$R*tstattST_MODEtS_IXUSRtS_IXGRPtS_IXOTHRR(R'tmode((s"/usr/lib64/python2.7/webbrowser.pyR-rs
'cCsrt|οΏ½rtStjjdοΏ½}|s,tSx?|jtjοΏ½D]+}tjj	||οΏ½}t|οΏ½r?tSq?WtS(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/lib64/python2.7/webbrowser.pyR"ystBaseBrowsercBsDeZdZdgZddοΏ½ZdedοΏ½ZdοΏ½ZdοΏ½ZRS(s3Parent class for all browsers. Do not use directly.s%stcCs||_||_dS(N(R
R%(tselfR
((s"/usr/lib64/python2.7/webbrowser.pyt__init__οΏ½s	icCs
tοΏ½dS(N(tNotImplementedError(R<RR R!((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½scCs|j|dοΏ½S(Ni(R(R<R((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½scCs|j|dοΏ½S(Ni(R(R<R((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½s(	RRt__doc__targsR=RRRR(((s"/usr/lib64/python2.7/webbrowser.pyR:οΏ½s		RcBs&eZdZdοΏ½ZdedοΏ½ZRS(sVClass for all browsers started with a command
       and without remote functionality.cCs]t|tοΏ½r'||_dg|_n|d|_|d|_tjj|jοΏ½|_dS(Ns%sii(t
isinstancet
basestringR
R@R#R$R%(R<R
((s"/usr/lib64/python2.7/webbrowser.pyR=οΏ½s	

icCsοΏ½|jgg|jD]}|jd|οΏ½^q}yItjd dkrZtj|οΏ½}ntj|dtοΏ½}|jοΏ½SWnt	k
rοΏ½t
SXdS(Ns%siR)t	close_fds(R
R@treplacetsystplatformt
subprocesstPopenRtwaittOSErrorR(R<RR R!targtcmdlinetp((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½s&
(RRR?R=RR(((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½s	
RcBseZdZdedοΏ½ZRS(sHClass for all browsers which are to be started in the
       background.icCsοΏ½|jgg|jD]}|jd|οΏ½^q}yοΏ½tjd dkrZtj|οΏ½}nHttddοΏ½}|sοΏ½ttddοΏ½}ntj|dt
d|οΏ½}|jοΏ½dkSWntk
rοΏ½t
SXdS(Ns%siR)tsetsidtsetpgrpRCt
preexec_fn(R
R@RDRERFRGRHtgetattrR#RRtpollRJR(R<RR R!RKRLRMRN((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½s&
(RRR?RR(((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½stUnixBrowsercBsVeZdZdZddgZdZdZdZe	Z
eZdοΏ½Z
dedοΏ½ZRS(s=Parent class for all Unix browsers with remote functionality.s%actions%scCs{g}|rC|jrCt|οΏ½}|j|}|rC|g}qCn|jg||}|sf|jr{ttjdοΏ½}nd}ttddοΏ½}|sοΏ½ttddοΏ½}nt	j
|dtd|d|jrοΏ½|pοΏ½dd|d|οΏ½}	|rFt
jd	οΏ½|	jοΏ½}
|
dkrAt
jd
οΏ½|	jοΏ½}
|
dkrAtSn|
S|jrl|	jοΏ½dkretStSn|	jοΏ½SdS(Nsr+RNRORCtstdintstdouttstderrRPii(t
raise_optstintR
t
backgroundtfileR#tdevnullRRQRGRHRtredirect_stdoutttimetsleepRRRRI(R<R@tremoteR!t	raise_opttoptRLtinoutRNRMtrc((s"/usr/lib64/python2.7/webbrowser.pyt_invokeοΏ½s<


	icCs	|dkr|j}n_|dkr0|j}nG|dkrc|jdkrW|j}qw|j}ntdd|οΏ½οΏ½g|jD]$}|jd|οΏ½jd|οΏ½^qοΏ½}|j|t|οΏ½}|sg|j	D]}|jd|οΏ½^qοΏ½}|j|t
t
οΏ½StSdS(NiiisBad 'new' parameter to open(); sexpected 0, 1, or 2, got %ss%ss%action(t
remote_actiontremote_action_newwintremote_action_newtabRRtremote_argsRDRdRR@R(R<RR R!tactionRKR@tsuccess((s"/usr/lib64/python2.7/webbrowser.pyRs"1(N(RRR?RRWRhReRfRgRRYRR\RdR(((s"/usr/lib64/python2.7/webbrowser.pyRSοΏ½s	,tMozillacBs>eZdZddgZddgZdZdZdZeZ	RS(s-Launcher class for Mozilla/Netscape browsers.s-noraises-raises-remotesopenURL(%s%action)R;s,new-windows,new-tab(
RRR?RWRhReRfRgRRY(((s"/usr/lib64/python2.7/webbrowser.pyRkstGaleoncBs8eZdZddgZddgZdZdZeZRS(s,Launcher class for Galeon/Epiphany browsers.s-noraiseR;s%actions%ss-ns-w(	RRR?RWRhReRfRRY(((s"/usr/lib64/python2.7/webbrowser.pyRl)stChromecBs2eZdZddgZdZdZdZeZRS(s)Launcher class for Google Chrome browser.s%actions%sR;s--new-window(	RRR?RhReRfRgRRY(((s"/usr/lib64/python2.7/webbrowser.pyRm3stOperacBs2eZdZddgZdZdZdZeZRS(s!Launcher class for Opera browser.s%actions%sR;s--new-window(	RRR?RhReRfRgRRY(((s"/usr/lib64/python2.7/webbrowser.pyRn?stElinkscBs8eZdZddgZdZdZdZeZeZ	RS(s#Launcher class for Elinks browsers.s-remotesopenURL(%s%action)R;s,new-windows,new-tab(
RRR?RhReRfRgRRYR\(((s"/usr/lib64/python2.7/webbrowser.pyRoIst	KonquerorcBseZdZdedοΏ½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.
    icCsw|dkrd}nd}ttjdοΏ½}ttddοΏ½}|sZttddοΏ½}ny4tjd||gdtd	|d
|d|οΏ½}Wntk
rοΏ½nX|j	οΏ½tSy:tjdd
|gdtd	|d
|d|d|οΏ½}Wntk
rοΏ½nX|j
οΏ½dkrtSy:tjdd|gdtd	|d
|d|d|οΏ½}Wntk
rbtSX|j
οΏ½dkSdS(NitnewTabtopenURLsr+RNROt	kfmclientRCRTRURVt	konquerors--silentRPtkfms-d(RZR#R[RQRRGRHRRJRIRRR(R<RR R!RiR[RNRM((s"/usr/lib64/python2.7/webbrowser.pyR^s@	





(RRR?RR(((s"/usr/lib64/python2.7/webbrowser.pyRpWstGrailcBs)eZdοΏ½ZdοΏ½ZdedοΏ½ZRS(cCsddl}ddl}ddl}ddl}tjj|jοΏ½dοΏ½}|jtj	οΏ½οΏ½d}tjj||dοΏ½}|j|οΏ½}|sοΏ½dS|j|j|jοΏ½}	x_|D]W}
y|	j
|
οΏ½Wn9|jk
rytj|
οΏ½Wqtk
rqXqοΏ½X|	SqοΏ½WdS(NiοΏ½οΏ½οΏ½οΏ½s.grail-unixis-*(tglobtpwdtsocketttempfileR#R$R7t
gettempdirtgetpwuidtgetuidRtAF_UNIXtSOCK_STREAMtconnectterrortunlinktIOError(R<RwRxRyRzttempdirtusertfilenametmaybeststfn((s"/usr/lib64/python2.7/webbrowser.pyt_find_grail_rcοΏ½s*	

cCs1|jοΏ½}|sdS|j|οΏ½|jοΏ½dS(Nii(RοΏ½tsendtclose(R<RiRοΏ½((s"/usr/lib64/python2.7/webbrowser.pyt_remoteοΏ½s

icCs3|r|jd|οΏ½}n|jd|οΏ½}|S(NsLOADNEW sLOAD (RοΏ½(R<RR R!tok((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½s(RRRοΏ½RοΏ½RR(((s"/usr/lib64/python2.7/webbrowser.pyRvοΏ½s		c	CsdtdοΏ½r%tddtdοΏ½οΏ½ndtjkrYtdοΏ½rYtddtdοΏ½οΏ½ndtjkrοΏ½tdοΏ½rοΏ½tddtdοΏ½οΏ½ndtjkrοΏ½tdοΏ½rοΏ½tdttdοΏ½οΏ½ntdοΏ½rοΏ½tddtdοΏ½οΏ½nx3dD]+}t|οΏ½rοΏ½t|dt|οΏ½οΏ½qοΏ½qοΏ½WtdοΏ½rAtdttdοΏ½οΏ½n%tdοΏ½rftdttdοΏ½οΏ½nx3dD]+}t|οΏ½rmt|dt|οΏ½οΏ½qmqmWtdοΏ½rοΏ½tddtdοΏ½οΏ½nx3dD]+}t|οΏ½rοΏ½t|dt	|οΏ½οΏ½qοΏ½qοΏ½WtdοΏ½rtddt
dοΏ½οΏ½ntdοΏ½rAtddtdοΏ½οΏ½ntdοΏ½r`tdtdοΏ½ndS( Nsxdg-opentGNOME_DESKTOP_SESSION_IDs	gvfs-opens
gnome-opentKDE_FULL_SESSIONRss
x-www-browsersmozilla-firefoxtfirefoxsmozilla-firebirdtfirebirdt	iceweaselticeapet	seamonkeytmozillatnetscapeRuRttgaleontepiphanyt	skipstones
google-chrometchrometchromiumschromium-browsertoperatmosaictgrail(	smozilla-firefoxRοΏ½smozilla-firebirdRοΏ½RοΏ½RοΏ½RοΏ½RοΏ½RοΏ½(RοΏ½RοΏ½(s
google-chromeRοΏ½RοΏ½schromium-browser(R"RRRR#R5RpRkRlRmRnRv(R((s"/usr/lib64/python2.7/webbrowser.pytregister_X_browsersοΏ½sD


tDISPLAYtTERMswww-browsertlinkstelinkstlynxtw3mtWindowsDefaultcBseZdedοΏ½ZRS(icCs.ytj|οΏ½Wntk
r%tSXtSdS(N(R#t	startfiletWindowsErrorRR(R<RR R!((s"/usr/lib64/python2.7/webbrowser.pyRs

(RRRR(((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½sswindows-defaulttPROGRAMFILESsC:\Program FilessInternet Explorer\IEXPLORE.EXERοΏ½RοΏ½RοΏ½RοΏ½RοΏ½RοΏ½tdarwintMacOSXcBs&eZdZdοΏ½ZdedοΏ½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/lib64/python2.7/webbrowser.pyR=Dsic	CsοΏ½d|kstοΏ½d|kr+d|}ntt|οΏ½οΏ½}|jdkred|jddοΏ½}nR|jdkr}d	}nd
|d}d|jddοΏ½}d
|j||f}tjddοΏ½}|dkrοΏ½tS|j	|οΏ½|j
οΏ½}|S(Nt't:sfile:tdefaultsopen location "%s"t"s%22tOmniWebR;stoWindow %disOpenURL "%s"sοΏ½tell application "%s"
                                activate
                                %s %s
                            end tellt	osascripttw(tAssertionErrorRXtboolR
RDR#tpopenRRtwriteRοΏ½(	R<RR R!tscriptttoWindowR'tosapipeRc((s"/usr/lib64/python2.7/webbrowser.pyRGs"
	
(RRR?R=RR(((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½:s		tMacOSXOSAScriptcBs eZdοΏ½ZdedοΏ½ZRS(cCs
||_dS(N(t_name(R<R
((s"/usr/lib64/python2.7/webbrowser.pyR=isicCsοΏ½|jdkr(d|jddοΏ½}nd|j|jddοΏ½f}tjddοΏ½}|dkritS|j|οΏ½|jοΏ½}|S(NRοΏ½sopen location "%s"RοΏ½s%22sοΏ½
                   tell application "%s"
                       activate
                       open location "%s"
                   end
                   RοΏ½RοΏ½(RοΏ½RDR#RοΏ½RRRοΏ½RοΏ½(R<RR R!RοΏ½RοΏ½Rc((s"/usr/lib64/python2.7/webbrowser.pyRls
(RRR=RR(((s"/usr/lib64/python2.7/webbrowser.pyRοΏ½hs	tsafariRοΏ½RοΏ½tos2tos2netscapetstarts%stBROWSERR;c	Csddl}dtjd}y#|jtjddοΏ½\}}Wn=|jk
r}tj|IJtj|IJtjdοΏ½nXd}x>|D]6\}}|dkrοΏ½d}qοΏ½|dkrοΏ½d}qοΏ½qοΏ½Wt|οΏ½dkrοΏ½tj|IJtjdοΏ½n|d}t||οΏ½d	GHdS(
NiοΏ½οΏ½οΏ½οΏ½sDUsage: %s [-n | -t] url
    -n: open new window
    -t: open new tabiitntds-ns-tis(tgetoptREtargvRοΏ½RVtexittlenR(	RοΏ½tusagetoptsR@tmsgtnew_wintotaR((s"/usr/lib64/python2.7/webbrowser.pytmainοΏ½s(#

	



t__main__(6R?R#RRER.RGR]t__all__t	ExceptionRRR
RRRRRRRRRFR-R"tobjectR:RRRSRktNetscapeRlRmtChromiumRnRoRpRvRοΏ½R5RοΏ½R$R7tiexploreRRοΏ½RοΏ½RR6t_userchoicestreverseRLR'RοΏ½R(((s"/usr/lib64/python2.7/webbrowser.pyt<module>sοΏ½		 			P

	
95	>

	 .	

#	


πŸ“