/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/webbrowser.cpython-312.pyc (26353B)
ЦiK\hdZddlZddlZddlZddlZddlZddlZddlZgdZGdde Z ejZ iZ dadad1dddZd1d Zd2d Zd Zd Zddd ZGddeZGddeZGddeZGddeZGddeZGddeZGddeZeZGddeZGddeZ Gd d!eZ!Gd"d#eZ"d$Z#d%Z$ejJdd&d'k(r Gd(d)eZ&ejJd*k(rGd+d,eZ'Gd-d.eZ(d/Z)e*d0k(re)yy)3z?Interfaces for launching and remotely controlling web browsers.N)Erroropenopen_new open_new_tabgetregisterc eZdZy)rN)__name__ __module__ __qualname__!/usr/lib/python3.12/webbrowser.pyrrsrrF preferredct5t t||gt|j <|st r|t vrtj d|ntj|dddy#1swYyxYw)zRegister a browser connector.Nr)_lock _tryorderregister_standard_browsers _browserslower_os_preferred_browserinsertappend)nameklassinstancers rrrsi  #   & (#(("3 $**, .4;P3P   Q %   T " # # #s A&A66A?ctt5t tddd||g}nt}|D]u}d|vr:tj|}|ddk(rt |ddcSt |cS t|j}|d|dcS|dk|dcStd#1swYxYw#t$rt|}YLwxYw)zCReturn a browser launcher instance appropriate for the environment.N%s&rz!could not locate runnable browser) rrrshlexsplitBackgroundBrowserGenericBrowserrrKeyError _synthesizer)using alternativesbrowsercommands rrr&s  - *, - w  $ 7?kk'*Gr{c!("66%g.. /#GMMO4qz%qz!'!wqz|##$$ 3 443 - -& /%g. /sB76C7CCCctt5t tdddtD]"}t|}|j |||s"yy#1swY5xYw)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+s rrrHs`  - *, -d) <<S) ,  - -s AAct|dS)zuOpen url in a new window of the default browser. If not possible, then open url in the only browser window. r"rr.s rrr[ Q<rct|dS)zOpen url in a new page ("tab") of the default browser. If not possible, then the behavior becomes equivalent to open_new(). r2r3s rrrbr4rc|jd}tj|sddgStjj |} t |j}|d}|rp|j|j k(rSddl }|j|}||_ tjj ||_t|d||d|gSddgS#t$rddgcYSwxYw)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) r$shutilwhichospathbasenamerrr'copyrr)r+rcmdrr, controllerr=s rr(r(js --/! C << d| 77  C DDJJL)Jdjjlj&9&99YYz* !  gg..w7 $yIj!! $< d|s C C/.C/c2eZdZdZdgZddZd dZdZdZy) BaseBrowserz3Parent class for all browsers. Do not use directly.rc ||_||_yN)rr<selfrs r__init__zBaseBrowser.__init__s  rctrC)NotImplementedErrorrEr.r/r0s rrzBaseBrowser.opens!!rc&|j|dS)Nr"r2rEr.s rrzBaseBrowser.open_newyya  rc&|j|dS)Nr6r2rKs rrzBaseBrowser.open_new_tabrLrN)rT) r r r __doc__argsrFrrrr rrrArAs = 6D"!!rrAceZdZdZdZddZy)r&zVClass for all browsers started with a command and without remote functionality.ct|tr||_dg|_n|d|_|dd|_tj j |j|_y)Nrrr") isinstancestrrrQr:r;r<rDs rrFzGenericBrowser.__init__sP dC DIDIQDIQRDI((3 rcptjd||jg|jDcgc]}|j d|c}z} tj dddk(rt j|}nt j|d}|j Scc}w#t$rYywxYw)Nwebbrowser.openrwinT) close_fdsF) sysauditrrQreplaceplatform subprocessPopenwaitOSErrorrEr.r/r0argcmdlineps rrzGenericBrowser.opens #S)99+,0II!7%("%T3!7!77 ||BQ5($$W-$$W=vvx< !7  sB$AB)) B54B5NrOr r r rPrFrr rrr&r&s,4 rr&ceZdZdZddZy)r%zHClass for all browsers which are to be started in the background.ct|jg|jDcgc]}|jd|c}z}tjd| tj dddk(rt j|}nt j|dd}|jduScc}w#t$rYywxYw)NrrWrXrYT)rZstart_new_sessionF) rrQr]r[r\r^r_r`pollrbrcs rrzBackgroundBrowser.opens99+,0II!7%("%T3!7!77 #S) ||BQ5($$W-$$W7;=FFH$ %!7  sB&AB++ B76B7NrOr r r rPrr rrr%r%s  rr%c@eZdZdZdZdZdZddgZdZdZ dZ d dZ d dZ y) UnixBrowserz=Parent class for all Unix browsers with remote functionality.NFT%actionrcg}|r+|jrt|}|j|}|r|g}|jg|z|z}|s |jrtj }nd}t j |d||jxr|xsd|d} |r | jd} | S|jr| jyy| j S#tj$rYywxYw)NTrZstdinstdoutstderrrjF) raise_optsintr backgroundr_DEVNULLr`redirect_stdoutraTimeoutExpiredrk) rErQremoter0r. raise_optoptreinoutrfrcs r_invokezUnixBrowser._invokes dooII//),CI99+ )D0 T__&&EE   WE%)%9%9%Ce%Kt$)T C  VVAYv __vvxvvx< ,,  sCC-,C-cHtjd||dk(r |j}nN|dk(r |j}n<|dk(r&|j |j}n|j}nt dd|zz|j Dcgc]$}|jd|jd|&}}|Dcgc]}|s| }}|j|d ||}|s<|jDcgc]}|jd|}}|j|d d Sy cc}wcc}wcc}w) NrWrr"r6zBad 'new' parameter to open(); zexpected 0, 1, or 2, got %srroTF) r[r\ remote_actionremote_action_newwinremote_action_newtabr remote_argsr]rrQ)rEr.r/r0actionrdrQsuccesss rrzUnixBrowser.opens* #S) !8''F AX..F AX((0222295;<= = ++- D#&..y&A--#+s++,,tT9c:6:ii@sCKKc*@D@<<eU3 3-+As)D4D<D&DrCrO) r r r rPrvrxrzrrrrrrr rrrnrns<GJJOd#KM! Frrnc(eZdZdZddgZdZdZdZdZy) Mozillaz$Launcher class for Mozilla browsers.rorrNz -new-windowz-new-tabTN r r r rPrrrrrxr rrrrs%.d#KM(%Jrrc,eZdZdZddgZddgZdZdZdZy ) Epiphanyz$Launcher class for Epiphany browser.z-noraiserNror-nz-wTN) r r r rPrvrrrrxr rrrr's).b!Jd#KMJrrc(eZdZdZddgZdZdZdZdZy)Chromez)Launcher class for Google Chrome browser.rorrN --new-windowTNrr rrrr1s%/d#KM)Jrrc(eZdZdZddgZdZdZdZdZy)Operaz!Launcher class for Opera browser.rorrNrTNrr rrrr=s%'d#KM)Jrrc,eZdZdZddgZdZdZdZdZdZ y) Elinksz#Launcher class for Elinks browsers.z-remotezopenURL(%s%action)rNz ,new-windowz,new-tabFN) r r r rPrrrrrxrzr rrrrGs-)23KM(%JOrrceZdZdZddZy) KonquerorzController for the KDE File Manager (kfm, or Konqueror). See the output of ``kfmclient --commands`` for more information on the Konqueror remote-control interface. ctjd||dk(rd}nd}tj} tjd||gd|||}|j y#t $rYnwxYw tjdd |gd|||d }|jy#t $rYnwxYw tjd d |gd|||d }|jduS#t $rYy wxYw)NrWr6newTabopenURL kfmclientT)rZrrrsrt konquerorz--silentrqkfmz-dF)r[r\r_ryr`rarbrk)rEr.r/r0rdevnullrfs rrzKonqueror.open\s #S) !8FF$$   +vs!;+/w(/AA FFH       +z3!?+/w(/379Avvx     &  %s!3+/w(/379AFFH$ %  s5A A,+A,0B B+*B+/C C+*C+NrOrlr rrrrUs  +&rrc(eZdZdZddgZdZdZdZdZy)Edgez*Launcher class for Microsoft Edge browser.rorrNrTNrr rrrrs%0d#KM)Jrrctjdrtddtdtjdrtddtgddtj vr+tjdrtddtddtj vr/tjdrtdt t dtjdrtddtdd D].}tj|st|dt|0tjd rtd t t d n/tjd rtd t t d tjd rtd dtd d D].}tj|st|dt|0tjdrtddtdtjdrtddtdyy)Nzxdg-opengio)rrz--rGNOME_DESKTOP_SESSION_IDz gvfs-openKDE_FULL_SESSIONrz x-www-browser)firefox iceweasel seamonkeyzmozilla-firefoxmozillarrepiphany)z google-chromechromechromiumzchromium-browseroperamicrosoft-edge) r8r9rr%r:environrrrrrr)r+s rregister_X_browsersrs||JT#4Z#@A||E/0KLM"RZZ/FLL4Md$5k$BCRZZ'FLL,Ei;)?@||O$$(9/(JK6 << WdGG$4 56 ||E 9U#34 k "i;)?@||JT8J#78O5 << WdF7O 45 ||G$g/||$%!4.>)?@&rcgatjdk(rXtddt dtddt dtddt dtddt dtjdk(rtddt dtjdd d k(rtd t tjjtjjd d d}tjjtjjddd}ddddd||fD].}tj|st|dt |0tjdrtddtdntjjdstjjdr` dj}t!j"|t j$}|j'j)}|at5tjjdrtjdrtddt7dtjdrtddt7dtjdrtddt9dtjdrtddt7dtjdrtddt7dd tjvrytjd jtj:}|j=|D]3}|d!k7s t?|d"#}|d$t|dt7|d"#5yy#t,t j.t0t2f$rYwxYw)%NdarwinMacOSXdefaultrrsafari serenityosBrowserrXrYzwindows-defaultzPROGRAMFILES(x86)zC:\Program Files (x86)z%Microsoft\Edge\Application\msedge.exe PROGRAMFILESzC:\Program FilesrrrzMicrosoftEdge.exerDISPLAYWAYLAND_DISPLAYz$xdg-settings get default-web-browser)rtTERMz www-browserlinkselinkslynxw3mBROWSERrNTrr") rr[r^rMacOSXOSAScriptr%WindowsDefaultr:r;joinrrr8r9rr$r_ check_outputrydecodestriprFileNotFoundErrorCalledProcessErrorPermissionErrorNotADirectoryErrorrr&rpathsepreverser()edge64edge32r+r> raw_resultresult userchoicesres rrrsI ||x4!;<4!:;D/)"<=4!:; |||#D"3I">? ||BQ5 "N3bjjnn-@B[\HJbjjnn^=PQHJ!; 81 DG||G$$(9'(BC D <<+ , %tT2E-F G ::>>) $ 7H(I /<BBD'44SASAST #**,224 )/%  ! ::>>& !||M*n].KL||G$$w(?@||H%4)9:||F#~f'=>||E"nU&;<BJJjj+11"**= # UG"}!'T:q6>WdN7,CtT  U 7&z'D'DoWij  s AO#O('O(rXrYceZdZddZy)rcztjd| tj|y#t$rYywxYw)NrWTF)r[r\r: startfilerbrIs rrzWindowsDefault.open(s= II' -  S!    s . ::NrO)r r r rr rrrr's rrrceZdZdZdZddZy)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. cxtj|jjdtd||_y)Nz3 is deprecated in 3.11 use MacOSXOSAScript instead.r6 stacklevelwarningswarn __class__r DeprecationWarningrrDs rrFzMacOSX.__init__Cs5 MMT^^4456::;MZ[ ]DIrctjd|d|vsJd|vrd|z}tt|}|jdk(rd|j ddz}nE|jd k(rd }nd |d z z}d |j ddz}d|jd|d|d}t jdd}|y|j||j}| S)NrW':zfile:ropen location "%s""%22OmniWebrNz toWindow %dr"z OpenURL "%s"ztell application "zK" activate  z% end tell osascriptwF) r[r\rwboolrr]r:popenwriteclose) rEr.r/r0scripttoWindowr>osapipers rrz MacOSX.openHs II' -c> !>#:ckd3i.CyyI%- C0GG99 )!H -a8H$s{{3'>>,099c8E hh{C0G MM& !B6MrNrOrgr rrrr9s   rrc\eZdZdfd ZedZej dZddZxZS)rc$t||yrC)superrF)rErrs rrFzMacOSXOSAScript.__init__ks G T "rctj|jjd|jjdtd|j SNz!._name is deprecated in 3.11 use z.name instead.r6rr)rEs r_namezMacOSXOSAScript._namensK MMT^^4456""&.."9"9!:.J, <99 rctj|jjd|jjdtd||_yrr)rEvals rrzMacOSXOSAScript._nameusH MMT^^4456""&.."9"9!:.J, <DIrc4tjd||jdk(rd|jddz}n!d|j|jddfz}t j dd}|y |j ||j}| S) NrWrrrrz tell application "%s" activate open location "%s" end rrF)r[r\rr]r:rrr)rEr.r/r0rrrs rrzMacOSXOSAScript.open|s II' -yyI%- C0GG  3;;sE#:; <hh{C0G MM& !B6Mr)rrO) r r r rFpropertyrsetterr __classcell__)rs@rrrjs9 #          rrcddl}dtjdz} |jtjddddg\}}d}D]O\}}|dk(rd}|dk(rd }|d k(s|d k(s!t |tj tj Qtdk7r0t |tj tj d|d}t||t d y#|j$rV}t |tj t |tj tj dYd}~d}~wwxYw) NrzcUsage: %s [-n | -t | -h] url -n: open new window -t: open new tab -h, --help: show helpr"ntdhhelp)filerz-tr6z-hz--help) getoptr[argverrorprintrtexitlenr) rusageoptsrQmsgnew_winoar.s rmainr s  #xx{ +E]]388AB<A d G1 9g $Y! $Y!x- %cjj ) HHJ   4yA~ e#**%  q'Cg $K% << c # e#**%  s(C55EA EE__main__rCrO)+rPr:r#r8r[r_ threadingr__all__ ExceptionrRLockrrrrrrrrrr(objectrAr&r%rnrrrChromiumrrrrrrr^rrrr r r rrrs|E  J I       #e #5D&',D!&!&[8&L+L^k{[ K [ 2& 2&j;"2AjMUl<<u   <<8//b$+$N8 zFr