b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/webbrowser.pyo
Size18.27 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:32
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
ñ� ]c@s#dZddkZddkZddkZddkZddkZddkZddddddgZdefd ��YZ hZ
gZ dd
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,�o e"�nei#id-�o ed.�oe
d.ded.��ned/�oe
d/ded/��ned0�oe
d0ded0��ned1�oe
d1ded1��q¿neid djo¤d2efd3��YZ$gZ hZ
e
d4e$�ei%i&ei#id5d6�d7�Z'xNd8d9d:d;d<d=e'fD]-Z(ee(�oe
e(dee(��qBqBWnyddk)Z)Wne*j
on+Xd>efd?��YZ+e
d@e+dAd�eidBjo3dCefdD��YZ,e
dCde,dE�d�neid dFjo?ed<�o2gZ hZ
e
dGdedHd<dIg�d�ndJei#jo�ei#dJi-ei.�Z/e/i0�x\e/D]TZ1e1dKjoAee1d�Z2e2d
djoe
e1dee1�d�qêq�q�WdZ1[1[/ndL�Z3e4dMjo e3�ndS(Ns?Interfaces for launching and remotely controlling Web browsers.iÿÿÿÿNtErrortopentopen_newt open_new_tabtgettregistercBseZRS((t__name__t
__module__(((s"/usr/lib64/python2.6/webbrowser.pyR
sicCsY||gt|i�<|djoti|�n"|djotid|�ndS(s9Register a browser connector and, optionally, connection.iN(t _browserstlowert _tryordertappendtinsert(tnametklasstinstancetupdate_tryorder((s"/usr/lib64/python2.6/webbrowser.pyRs


cCsø|dj o
|g}nt}xÅ|D]½}d|jo=ti|�}|ddjot|d �St|�Sq'yt|i�}Wntj
ot |�}nX|ddj o |dS|ddj o |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.6/webbrowser.pyRs&


 icCs<x5tD]-}t|�}|i|||�otSqWtS(N(R
RRtTruetFalse(turltnewt autoraiseR
R((s"/usr/lib64/python2.6/webbrowser.pyR9s   cCs
t|d�S(Ni(R(R((s"/usr/lib64/python2.6/webbrowser.pyR@scCs
t|d�S(Ni(R(R((s"/usr/lib64/python2.6/webbrowser.pyRCsc Csó|i�d}t|�p ddgStii|�}yt|i�}Wntj
oddgSX|d}|om|i�|ijoWddk }|i |�}||_
tii|�|_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.6/webbrowser.pyRGs" 
  
   itwincCse|i�}tii|�o|id�otSx*dD]"}tii||�otSq;WtS(Ns.exes.bat(s.exes.bat(s.exes.bat(R R#R$tisfiletendswithRR(R'text((s"/usr/lib64/python2.6/webbrowser.pyt
_isexecutablehs # cCs`tii|�oIti|�ti}|ti@p|ti@p|ti@otSnt S(N(
R#R$R*tstattST_MODEtS_IXUSRtS_IXGRPtS_IXOTHRR(R'tmode((s"/usr/lib64/python2.6/webbrowser.pyR-qs
* cCsxt|�otStiid�}|ptSxA|iti�D]-}tii ||�}t|�otSqCWtS(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.6/webbrowser.pyR"xs

 t BaseBrowsercBsDeZdZdgZdd�Zddd�Zd�Zd�ZRS( s3Parent class for all browsers. Do not use directly.s%stcCs||_||_dS(N(R
R%(tselfR
((s"/usr/lib64/python2.6/webbrowser.pyt__init__�s iicCs
t�dS(N(tNotImplementedError(R<RR R!((s"/usr/lib64/python2.6/webbrowser.pyR�scCs|i|d�S(Ni(R(R<R((s"/usr/lib64/python2.6/webbrowser.pyR�scCs|i|d�S(Ni(R(R<R((s"/usr/lib64/python2.6/webbrowser.pyR�s(RRt__doc__targsR=RRR(((s"/usr/lib64/python2.6/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/lib64/python2.6/webbrowser.pyR= s  

iic
Cs |igg}|iD]}||id|�q~}yKtid djoti|�}nti|dt�}|i� SWnt j
ot
SXdS(Ns%siR)t close_fds( R
R@treplacetsystplatformt
subprocesstPopenRtwaittOSErrorR(R<RR R!t_[1]targtcmdlinetp((s"/usr/lib64/python2.6/webbrowser.pyRªs*(RRR?R=R(((s"/usr/lib64/python2.6/webbrowser.pyR�s
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
SXdS(Ns%siR)tsetsidtsetpgrpRCt
preexec_fn(R
R@RDRERFRGRHtgetattrR#RRtpollRJR( R<RR R!RKRLRMRNRO((s"/usr/lib64/python2.6/webbrowser.pyR»s*(RRR?R(((s"/usr/lib64/python2.6/webbrowser.pyR·st UnixBrowsercBsVeZdZdZddgZdZdZdZe Z
e Z 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|�} |o[tid �| i�}
|
djo/tid
�| i�}
|
djot Sn|
S|io | i�djot StSn | i� SdS( Nsr+RORPRCtstdintstdouttstderrRQii(t
raise_optstinttboolR
t
backgroundtfileR#tdevnullRRRRGRHRtredirect_stdoutttimetsleepRSRRI( R<R@tremoteR!t raise_opttoptRMtinoutRORNtrc((s"/usr/lib64/python2.6/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|�}|pDg} |i D]}| |id|�qå~ }|i|t
t
�StSdS(NiiisBad 'new' parameter to open(); sexpected 0, 1, or 2, got %ss%ss%action( t
remote_actiontremote_action_newwintremote_action_newtabRRt remote_argsRDRfRR@R(
R<RR R!tactionRKRLR@tsuccesst_[2]((s"/usr/lib64/python2.6/webbrowser.pyRs"






50N(RRR?RRXRjRgRhRiRR[RR^RfR(((s"/usr/lib64/python2.6/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/lib64/python2.6/webbrowser.pyRns  tGaleoncBs8eZdZddgZddgZdZdZeZRS(s,Launcher class for Galeon/Epiphany browsers.s-noraiseR;s%actions%ss-ns-w( RRR?RXRjRgRhRR[(((s"/usr/lib64/python2.6/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/lib64/python2.6/webbrowser.pyRp5s  tElinkscBs8eZdZddgZdZdZdZeZeZ RS(s#Launcher class for Elinks browsers.s-remotesopenURL(%s%action)R;s ,new-windows,new-tab(
RRR?RjRgRhRiRR[R^(((s"/usr/lib64/python2.6/webbrowser.pyRqAs 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
�djotSy:tidd|gdtd |d
|d |d|�}Wntj
ot SX|i
�djSdS(NitnewTabtopenURLsr+RORPt kfmclientRCRURVRWt konquerors--silentRQtkfms-d( R\R#R]RRRRGRHRRJRIRSR(R<RR R!RkR]RORN((s"/usr/lib64/python2.6/webbrowser.pyRVs@

 
  
  
(RRR?R(((s"/usr/lib64/python2.6/webbrowser.pyRrOstGrailcBs)eZd�Zd�Zddd�ZRS(c
Csddk}ddk}ddk}ddk}tii|i�d�}|iti ��d}tii||d�}|i|�}|pdS|i|i |i �} xc|D][}
y| i
|
�Wn=|ij
o.yti|
�Wqtj
oqXq·X| Sq·WdS(Niÿÿÿÿs .grail-unixis-*(tglobtpwdtsocketttempfileR#R$R7t
gettempdirtgetpwuidtgetuidRtAF_UNIXt SOCK_STREAMtconnectterrortunlinktIOError( R<RyRzR{R|ttempdirtusertfilenametmaybeststfn((s"/usr/lib64/python2.6/webbrowser.pyt_find_grail_rc�s,     
cCs3|i�}|pdS|i|�|i�dS(Nii(R�tsendtclose(R<RkR�((s"/usr/lib64/python2.6/webbrowser.pyt_remote¦s  

iicCs5|o|id|�}n|id|�}|S(NsLOADNEW sLOAD (R�(R<RR R!tok((s"/usr/lib64/python2.6/webbrowser.pyR®s(RRR�R�R(((s"/usr/lib64/python2.6/webbrowser.pyRx�s  c CsÆdtijo'td�otddtd��ndtijo'td�otdttd��nx5dD]-}t|�ot|dt|��ququWtd �otd ttd ��n(td
�otd
ttd
��nx5dD]-}t|�ot|dt|��qûqûWtd�otddtd��ntd�otddt d��ntd�otddtd��ntd�otdt
d�ndS(NtGNOME_DESKTOP_SESSION_IDs
gnome-opentKDE_FULL_SESSIONRusmozilla-firefoxtfirefoxsmozilla-firebirdtfirebirdt seamonkeytmozillatnetscapeRwRvtgaleontepiphanyt skipstonetoperatmosaictgrail(smozilla-firefoxR�smozilla-firebirdR�R�R�R�(R�R�( R#R5R"RRRRrRnRoRpRx(R((s"/usr/lib64/python2.6/webbrowser.pytregister_X_browsers½s4







tDISPLAYtTERMtlinkstelinkstlynxtw3mtWindowsDefaultcBseZddd�ZRS(iicCs0yti|�Wntj
otSXtSdS(N(R#t startfilet WindowsErrorRR(R<RR R!((s"/usr/lib64/python2.6/webbrowser.pyRs
(RRR(((s"/usr/lib64/python2.6/webbrowser.pyR¥sswindows-defaultt PROGRAMFILESsC:\Program FilessInternet Explorer\IEXPLORE.EXER�R�R�R�R�R�tInternetConfigcBseZddd�ZRS(iicCsti|�tS(N(tict launchurlR(R<RR R!((s"/usr/lib64/python2.6/webbrowser.pyR#s
(RRR(((s"/usr/lib64/python2.6/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/lib64/python2.6/webbrowser.pyR=5siic Csíd|jod|}ntt|��}|idjod|idd�}nU|idjo
d}nd |d
}d |idd�}d |i||f}tid
d�}|djotS|i|�|i �}| S(Nt:sfile:tdefaultsopen location "%s"t"s%22tOmniWebR;s toWindow %dis OpenURL "%s"s�tell application "%s"
activate
%s %s
end tellt osascripttw(
RYRZR
RDR#tpopenRRtwriteR�( R<RR R!tscriptttoWindowR'tosapipeRe((s"/usr/lib64/python2.6/webbrowser.pyR8s 



 (RRR?R=R(((s"/usr/lib64/python2.6/webbrowser.pyR­+s  R¯tos2t os2netscapetstarts%stBROWSERR;c
Csddk}dtid}y#|itidd�\}}Wn?|ij
o0}ti|IJti|IJtid�nXd}xB|D]:\}}|djo
d}q�|djo
d}q�q�Wt|�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/lib64/python2.6/webbrowser.pytmain}s* #

 





t__main__(5R?R#RRER.RGR_t__all__t ExceptionRRR
RRRRRRRRFR-R"tobjectR:RRRTRntNetscapeRoRpRqRrRxR�R5R¥R$R7tiexploreRRªt ImportErrorR©R­RR6t _userchoicestreverseRMR'RÈR(((s"/usr/lib64/python2.6/webbrowser.pyt<module>s¨          
 P   95 - 



 
 

"0! 

%