/snap/core20/2866/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc413420644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc134590644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2866/usr/lib/python3.8/__pycache__/webbrowser.cpython-38.pyc (17120B)
U ʦi^@sdZddlZddlZddlZddlZddlZddlZddddddgZGd ddeZ e Z iZ da dadddZddZddZd d ddZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGd d!d!eZGd"d#d#eZeZGd$d%d%eZGd&d'd'eZ Gd(d)d)eZ!Gd*d+d+eZ"d,d-Z#d.d/Z$ej%dd0d1krGd2d3d3eZ&ej%d4krGd5d6d6eZ'Gd7d8d8eZ(d9d:Z)e*d;kre)dS)?z?Interfaces for launching and remotely controlling Web browsers.NErroropenopen_new open_new_tabgetregisterc@s eZdZdS)rN)__name__ __module__ __qualname__r r /usr/lib/python3.8/webbrowser.pyrsF preferredc CsZtLtdkrt||gt|<|s4trB|tkrBtd|n t|W5QRXdS)zRegister a browser connector.Nr)_lock _tryorderregister_standard_browsers _browserslower_os_preferred_browserinsertappend)nameklassinstancerr r r rsc Cstdkr&ttdkrtW5QRX|dk r6|g}nt}|D]}d|krt|}|ddkrtt|ddSt|Sq>zt|}Wnt k rt |}YnX|ddk r|dS|ddk r>|dSq>t ddS)zCReturn a browser launcher instance appropriate for the environment.N%s&rz!could not locate runnable browser) rrrshlexsplitBackgroundBrowserGenericBrowserrrKeyError _synthesizer)ZusingZ alternativesbrowsercommandr r r r%s,     Tc CsPtdkr&ttdkrtW5QRXtD] }t|}||||r*dSq*dS)aDisplay url using the default browser. If possible, open url in a location determined by new. - 0: the same browser window (the default). - 1: a new browser window. - 2: a new browser page ("tab"). If possible, autoraise raises the window (the default) or not. NTF)rrrrr)urlnew autoraiserr$r r r rGs cCs t|dS)zuOpen url in a new window of the default browser. If not possible, then open url in the only browser window. rrr&r r r rZscCs t|dS)zOpen url in a new page ("tab") of the default browser. If not possible, then the behavior becomes equivalent to open_new(). r)r*r r r rascCs|d}t|sddgStj|}zt|}Wntk rVddgYSX|d}|r||jkrddl }| |}||_ tj||_t |d||dd|gSddgS)aAttempt to synthesize a controller based 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]. rNr)rr) rshutilwhichospathbasenamerrr"copyrr)r$rcmdrr%Z controllerr1r r r r#is"    r#c@s:eZdZdZdgZdddZddd Zd d Zd d ZdS) BaseBrowserz3Parent class for all browsers. Do not use directly.rcCs||_||_dSN)rr0selfrr r r __init__szBaseBrowser.__init__rTcCstdSr5)NotImplementedErrorr7r&r'r(r r r rszBaseBrowser.opencCs ||dS)Nrr)r7r&r r r rszBaseBrowser.open_newcCs ||dS)Nr+r)r;r r r rszBaseBrowser.open_new_tabN)r4)rT) rr r __doc__argsr8rrrr r r r r3s   r3c@s"eZdZdZddZd ddZdS) r!zVClass for all browsers started with a command and without remote functionality.cCsFt|tr||_dg|_n|d|_|dd|_tj|j|_dS)Nrrr) isinstancestrrr=r.r/r0r6r r r r8s    zGenericBrowser.__init__rTcs|td|jgfdd|jD}z8tjdddkrHt|}ntj|dd}| WStk rvYdSXdS) Nwebbrowser.opencsg|]}|dqSrreplace.0argr*r r sz'GenericBrowser.open..winT) close_fdsF) sysauditrr=platform subprocessPopenwaitOSErrorr7r&r'r(cmdlinepr r*r rs   zGenericBrowser.openN)rTrr r r<r8rr r r r r!s r!c@seZdZdZdddZdS)r zHClass for all browsers which are to be started in the background.rTcs|jgfdd|jD}tdz.r@rHrIT)rJstart_new_sessionF) rr=rKrLrMrNrOpollrQrRr r*r rs  zBackgroundBrowser.openN)rTrr r r<rr r r r r sr c@sDeZdZdZdZdZdZddgZdZdZ dZ d ddZ d d d Z dS) UnixBrowserz=Parent class for all Unix browsers with remote functionality.NFT%actionrc Csg}|r*|jr*t|}|j|}|r*|g}|jg||}|sD|jrLtj}nd}tj|d||jrd|pfd|dd} |rz| d} | WStj k rYdSXn&|jr| dkrdSdSn |  SdS)NTrJstdinstdoutstderrrVF) raise_optsintr backgroundrNDEVNULLrOredirect_stdoutrPZTimeoutExpiredrW) r7r=Zremoter(r&Z raise_optZoptrSZinoutrTrcr r r _invokes4        zUnixBrowser._invokercstd|dkr|jnB|dkr,|jn2|dkrN|jdkrF|jq^|jntdd|fdd|jD}d d|D}||d |}|sfd d|jD}||d d Sd SdS) Nr@rrr+zBad 'new' parameter to open(); zexpected 0, 1, or 2, got %scs g|]}|ddqS)rrZrBrDactionr&r r rGsz$UnixBrowser.open..cSsg|] }|r|qSr r rDr r r rGsTcsg|]}|dqSrArBrDr*r r rGsF) rKrL remote_actionremote_action_newwinremote_action_newtabr remote_argsrfr=)r7r&r'r(r=Zsuccessr rgr rs*   zUnixBrowser.open)N)rT) rr r r<r`rbrdrlrirjrkrfrr r r r rYs #rYc@s(eZdZdZddgZdZdZdZdZdS) Mozillaz$Launcher class for Mozilla browsers.rZrr4z -new-windowz-new-tabTN rr r r<rlrirjrkrbr r r r rms rmc@s0eZdZdZddgZddgZdZdZdZd Z d S) Netscapez$Launcher class for Netscape browser.-noraisez-raise-remoteopenURL(%s%action)r4 ,new-window,new-tabTN) rr r r<r`rlrirjrkrbr r r r ro&sroc@s,eZdZdZddgZddgZdZdZdZd S) Galeonz,Launcher class for Galeon/Epiphany browsers.rpr4rZr-nz-wTN) rr r r<r`rlrirjrbr r r r ru1s ruc@s(eZdZdZddgZdZdZdZdZdS)Chromez)Launcher class for Google Chrome browser.rZrr4 --new-windowTNrnr r r r rw;s rwc@s(eZdZdZddgZdZdZdZdZdS)Operaz!Launcher class for Opera browser.rZrr4rxTNrnr r r r ryGs ryc@s,eZdZdZddgZdZdZdZdZdZ dS) Elinksz#Launcher class for Elinks browsers.rqrrr4rsrtFN) rr r r<rlrirjrkrbrdr r r r rzQsrzc@seZdZdZdddZdS) KonquerorzController for the KDE File Manager (kfm, or Konqueror). See the output of ``kfmclient --commands`` for more information on the Konqueror remote-control interface. rTcCstd||dkrd}nd}tj}ztjd||gd|||d}Wntk rVYnX|dSz tjdd |gd|||dd }Wntk rYnX|dkrdSz tjd d |gd|||dd }Wntk rYd SX|dkSdS)Nr@r+ZnewTabZopenURL kfmclientT)rJr\r]r^ konquerorz--silentr[kfmz-dF)rKrLrNrcrOrQrPrW)r7r&r'r(rhdevnullrTr r r rfsN        zKonqueror.openN)rTrXr r r r r{_sr{c@s&eZdZddZddZd ddZd S) Grailc Csddl}ddl}ddl}ddl}tj|d}|t d}tj| || |d}||}|stdS||j |j } |D]T} z| | Wn8tk rzt| Wntk rYnXYqX| SqdS)Nrz .grail-unixz-*)globpwdsockettempfiler.r/joinZ gettempdirgetpwuidgetuidescapeZAF_UNIXZ SOCK_STREAMZconnectrQunlink) r7rrrrZtempdiruserfilenameZmaybessfnr r r _find_grail_rcs,   zGrail._find_grail_rccCs&|}|sdS|||dS)Nrr)rsendclose)r7rhrr r r _remotes  z Grail._remoterTcCs2td||r |d|}n|d|}|S)Nr@zLOADNEW zLOAD )rKrLr)r7r&r'r(okr r r rs  z Grail.openN)rT)rr r rrrr r r r rsrcCstdrtddtddtjkr>tdr>tddtddtjkrbtdrbtddtddtjkrtdrtdttdtdrtddtddD]}t|rt|dt|qd D]}t|rt|dt|qtd rtd ttd ntd r"td ttd d D]"}t|r&t|dt |q&td rftd dtd dD]"}t|rjt|dt |qjtdrtddt dtdrtddtdtdrtdt ddS)Nzxdg-openZGNOME_DESKTOP_SESSION_IDz gvfs-openz gnome-openZKDE_FULL_SESSIONr|z x-www-browser)firefoxZ iceweaselZiceape seamonkey)zmozilla-firefoxzmozilla-firebirdfirebirdmozillanetscaper~r})ZgaleonZepiphanyZ skipstone)z google-chromechromeZchromiumzchromium-browseroperaZmosaicZgrail) r,r-rr r.environr{rmrorurwryr)r$r r r register_X_browserssD            rc Cs.gatjdkrNtddtdtddtdtddtdtddtdtjdddkrtd ttjtj d d d }dd dddd|fD]}t |rt|dt |qntj dstj dr&z(d}tj|tjd}|}Wn ttjttfk rYnX|attj drt drPtddtdt drltddtdt drtddtdt drtddtdt drtddtddtj kr*tj dtj}||D]>}|dkrt|dd}|d dkrt|dt|ddqdS)!NdarwinMacOSXdefaultrrZsafarirHrIzwindows-defaultZ PROGRAMFILESzC:\Program FileszInternet Explorer\IEXPLORE.EXErrrrrZDISPLAYZWAYLAND_DISPLAYz$xdg-settings get default-web-browser)r^ZTERMz www-browserZlinksZelinksZlynxZw3mZBROWSERr4Tr r)rrKrMrMacOSXOSAScriptWindowsDefaultr.r/rrrr,r-r rrNZ check_outputrcdecodestripFileNotFoundErrorZCalledProcessErrorPermissionErrorNotADirectoryErrorrrr!rzpathsepreverser#)Ziexplorer$r2Z raw_resultresultZ userchoicesrSr r r r s\           rrHrIc@seZdZdddZdS)rrTcCs:td|zt|Wntk r0YdSXdSdS)Nr@FT)rKrLr.Z startfilerQr:r r r rXs  zWindowsDefault.openN)rT)rr r rr r r r rWsrrc@s"eZdZdZddZd ddZdS) ra{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 ||_dSr5)rr6r r r r8sszMacOSX.__init__rTc Cstd|d|kstd|kr(d|}tt|}|jdkrPd|dd}n<|jd kr`d }n d |d }d |dd}d|j||f}tdd}|dkrdS| || }| S)Nr@':zfile:ropen location "%s""%22ZOmniWebr4z toWindow %drz OpenURL "%s"ztell application "%s" activate %s %s end tell osascriptwF) rKrLAssertionErrorraboolrrCr.popenwriter) r7r&r'r(scriptZtoWindowr2osapiperer r r rvs(         z MacOSX.openN)rTrUr r r r ris rc@seZdZddZdddZdS) rcCs ||_dSr5)_namer6r r r r8szMacOSXOSAScript.__init__rTcCsb|jdkrd|dd}nd|j|ddf}tdd}|dkrJdS|||}| S) Nrrrrz tell application "%s" activate open location "%s" end rrF)rrCr.rrr)r7r&r'r(rrrer r r rs   zMacOSXOSAScript.openN)rT)rr r r8rr r r r rsrc Csddl}dtjd}z|tjddd\}}WnJ|jk r~}z*t|tjdt|tjdtdW5d}~XYnXd}|D]"\}}|dkrd}q|dkrd}qt|dkrt|tjdtd|d}t||td dS) NrzDUsage: %s [-n | -t] url -n: open new window -t: open new tabrZntd)filervz-tr+) getoptrKargverrorprintr^exitlenr) rZusageZoptsr=msgZnew_winoar&r r r mains,    r__main__)N)N)rT)+r<r.rr,rKrNZ threading__all__ ExceptionrRLockrrrrrrrrrr#objectr3r!r rYrmrorurwZChromiumryrzr{rrrrMrrrrrr r r r sR " "O     56AK /