/snap/core18/2999/usr/lib/python3.6/__pycache__
NameSizeModeActions
abc.cpython-36.pyc75150644editdlrm
aifc.cpython-36.pyc259430644editdlrm
antigravity.cpython-36.pyc7790644editdlrm
argparse.cpython-36.pyc604560644editdlrm
ast.cpython-36.pyc117040644editdlrm
asynchat.cpython-36.pyc68150644editdlrm
asyncore.cpython-36.pyc158380644editdlrm
base64.cpython-36.pyc170590644editdlrm
bdb.cpython-36.pyc170330644editdlrm
binhex.cpython-36.pyc120860644editdlrm
bisect.cpython-36.pyc26760644editdlrm
bz2.cpython-36.pyc112820644editdlrm
calendar.cpython-36.pyc258820644editdlrm
cgi.cpython-36.pyc284160644editdlrm
cgitb.cpython-36.pyc100800644editdlrm
chunk.cpython-36.pyc49000644editdlrm
cmd.cpython-36.pyc125750644editdlrm
code.cpython-36.pyc98360644editdlrm
codecs.cpython-36.pyc339000644editdlrm
codeop.cpython-36.pyc62700644editdlrm
colorsys.cpython-36.pyc33110644editdlrm
compileall.cpython-36.pyc82780644editdlrm
configparser.cpython-36.pyc452440644editdlrm
contextlib.cpython-36.pyc111580644editdlrm
copy.cpython-36.pyc70790644editdlrm
copyreg.cpython-36.pyc42440644editdlrm
cProfile.cpython-36.pyc42940644editdlrm
crypt.cpython-36.pyc22420644editdlrm
csv.cpython-36.pyc118550644editdlrm
datetime.cpython-36.pyc545110644editdlrm
decimal.cpython-36.pyc3510644editdlrm
difflib.cpython-36.pyc596420644editdlrm
dis.cpython-36.pyc141810644editdlrm
doctest.cpython-36.pyc755890644editdlrm
dummy_threading.cpython-36.pyc11020644editdlrm
enum.cpython-36.pyc234530644editdlrm
filecmp.cpython-36.pyc83050644editdlrm
fileinput.cpython-36.pyc131520644editdlrm
fnmatch.cpython-36.pyc28740644editdlrm
formatter.cpython-36.pyc175790644editdlrm
fractions.cpython-36.pyc184260644editdlrm
ftplib.cpython-36.pyc283570644editdlrm
functools.cpython-36.pyc240620644editdlrm
genericpath.cpython-36.pyc37260644editdlrm
getopt.cpython-36.pyc62170644editdlrm
getpass.cpython-36.pyc41770644editdlrm
gettext.cpython-36.pyc143060644editdlrm
glob.cpython-36.pyc42590644editdlrm
gzip.cpython-36.pyc162260644editdlrm
hashlib.cpython-36.pyc66920644editdlrm
heapq.cpython-36.pyc142920644editdlrm
hmac.cpython-36.pyc48360644editdlrm
imaplib.cpython-36.pyc421380644editdlrm
imghdr.cpython-36.pyc41500644editdlrm
imp.cpython-36.pyc96960644editdlrm
inspect.cpython-36.pyc797390644editdlrm
io.cpython-36.pyc33870644editdlrm
ipaddress.cpython-36.pyc623860644editdlrm
keyword.cpython-36.pyc17650644editdlrm
linecache.cpython-36.pyc37780644editdlrm
locale.cpython-36.pyc340300644editdlrm
lzma.cpython-36.pyc119920644editdlrm
macpath.cpython-36.pyc56410644editdlrm
macurl2path.cpython-36.pyc18670644editdlrm
mailbox.cpython-36.pyc637520644editdlrm
mailcap.cpython-36.pyc72090644editdlrm
mimetypes.cpython-36.pyc155530644editdlrm
modulefinder.cpython-36.pyc153660644editdlrm
netrc.cpython-36.pyc38360644editdlrm
nntplib.cpython-36.pyc337800644editdlrm
ntpath.cpython-36.pyc131900644editdlrm
nturl2path.cpython-36.pyc14990644editdlrm
numbers.cpython-36.pyc121420644editdlrm
opcode.cpython-36.pyc54130644editdlrm
operator.cpython-36.pyc139130644editdlrm
optparse.cpython-36.pyc480540644editdlrm
os.cpython-36.pyc296280644editdlrm
pathlib.cpython-36.pyc420070644editdlrm
pdb.cpython-36.pyc460940644editdlrm
pickle.cpython-36.pyc426910644editdlrm
pickletools.cpython-36.pyc660200644editdlrm
pipes.cpython-36.pyc78080644editdlrm
pkgutil.cpython-36.pyc162610644editdlrm
platform.cpython-36.pyc291970644editdlrm
plistlib.cpython-36.pyc280550644editdlrm
poplib.cpython-36.pyc133290644editdlrm
posixpath.cpython-36.pyc104560644editdlrm
pprint.cpython-36.pyc158240644editdlrm
profile.cpython-36.pyc139010644editdlrm
pstats.cpython-36.pyc218570644editdlrm
pty.cpython-36.pyc38610644editdlrm
pyclbr.cpython-36.pyc83650644editdlrm
pydoc.cpython-36.pyc837750644editdlrm
py_compile.cpython-36.pyc65440644editdlrm
queue.cpython-36.pyc87550644editdlrm
quopri.cpython-36.pyc57730644editdlrm
random.cpython-36.pyc193300644editdlrm
re.cpython-36.pyc140580644editdlrm
reprlib.cpython-36.pyc54000644editdlrm
rlcompleter.cpython-36.pyc57800644editdlrm
runpy.cpython-36.pyc79820644editdlrm
sched.cpython-36.pyc65640644editdlrm
secrets.cpython-36.pyc21620644editdlrm
selectors.cpython-36.pyc176970644editdlrm
shelve.cpython-36.pyc94580644editdlrm
shlex.cpython-36.pyc69700644editdlrm
shutil.cpython-36.pyc307040644editdlrm
signal.cpython-36.pyc25150644editdlrm
site.cpython-36.pyc165600644editdlrm
sitecustomize.cpython-36.pyc2120644editdlrm
smtpd.cpython-36.pyc266830644editdlrm
smtplib.cpython-36.pyc353400644editdlrm
sndhdr.cpython-36.pyc69130644editdlrm
socket.cpython-36.pyc220130644editdlrm
socketserver.cpython-36.pyc242500644editdlrm
sre_compile.cpython-36.pyc102780644editdlrm
sre_constants.cpython-36.pyc59720644editdlrm
sre_parse.cpython-36.pyc203580644editdlrm
ssl.cpython-36.pyc369390644editdlrm
stat.cpython-36.pyc38510644editdlrm
statistics.cpython-36.pyc181740644editdlrm
string.cpython-36.pyc79640644editdlrm
stringprep.cpython-36.pyc100300644editdlrm
struct.cpython-36.pyc3120644editdlrm
subprocess.cpython-36.pyc354850644editdlrm
sunau.cpython-36.pyc169380644editdlrm
symbol.cpython-36.pyc25170644editdlrm
symtable.cpython-36.pyc104280644editdlrm
sysconfig.cpython-36.pyc159160644editdlrm
tabnanny.cpython-36.pyc69750644editdlrm
tarfile.cpython-36.pyc630850644editdlrm
telnetlib.cpython-36.pyc180970644editdlrm
tempfile.cpython-36.pyc253090644editdlrm
textwrap.cpython-36.pyc136840644editdlrm
this.cpython-36.pyc12650644editdlrm
threading.cpython-36.pyc372340644editdlrm
timeit.cpython-36.pyc116030644editdlrm
token.cpython-36.pyc33200644editdlrm
tokenize.cpython-36.pyc186470644editdlrm
trace.cpython-36.pyc194950644editdlrm
traceback.cpython-36.pyc196460644editdlrm
tracemalloc.cpython-36.pyc172290644editdlrm
tty.cpython-36.pyc10720644editdlrm
turtle.cpython-36.pyc1317510644editdlrm
types.cpython-36.pyc82010644editdlrm
typing.cpython-36.pyc733060644editdlrm
uu.cpython-36.pyc34980644editdlrm
uuid.cpython-36.pyc209180644editdlrm
warnings.cpython-36.pyc132580644editdlrm
wave.cpython-36.pyc178850644editdlrm
weakref.cpython-36.pyc191430644editdlrm
webbrowser.cpython-36.pyc157970644editdlrm
xdrlib.cpython-36.pyc83020644editdlrm
zipapp.cpython-36.pyc55340644editdlrm
zipfile.cpython-36.pyc497280644editdlrm
_bootlocale.cpython-36.pyc9800644editdlrm
_collections_abc.cpython-36.pyc287970644editdlrm
_compat_pickle.cpython-36.pyc65660644editdlrm
_compression.cpython-36.pyc41040644editdlrm
_dummy_thread.cpython-36.pyc48510644editdlrm
_markupbase.cpython-36.pyc79910644editdlrm
_osx_support.cpython-36.pyc96840644editdlrm
_pydecimal.cpython-36.pyc1634020644editdlrm
_pyio.cpython-36.pyc713860644editdlrm
_sitebuiltins.cpython-36.pyc34350644editdlrm
_strptime.cpython-36.pyc159630644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc187790644editdlrm
_threading_local.cpython-36.pyc64250644editdlrm
_weakrefset.cpython-36.pyc78280644editdlrm
__future__.cpython-36.pyc41670644editdlrm
__phello__.foo.cpython-36.pyc1190644editdlrm
Edit: /snap/core18/2999/usr/lib/python3.6/__pycache__/base64.cpython-36.pyc (17059B)
3 NqiO@sdZddlZddlZddlZddddddd d d d d dddddddgZeefZddZdCddZ dDddZ ddZ ddZ ej ddZej ddZddZddZd Zdadad!d ZdEd"d Zd#d ZdFd$d Zdadad%Zd&ZdGd'd(Zddddd)d*dZddd+d,d-dZd.Z da!da"da#dHd/d Z$d0dZ%d1Z&e&d2d3Z'd4dZ(d5dZ)d6d7Z*d8dZ+d9d:Z,d;dZ-dd?Z/d@dAZ0e1dBkre/dS)IzDBase16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodingsNencodedecode encodebytes decodebytes b64encode b64decode b32encode b32decode b16encode b16decode b85encode b85decode a85encode a85decodestandard_b64encodestandard_b64decodeurlsafe_b64encodeurlsafe_b64decodecCsxt|tr2y |jdStk r0tdYnXt|tr@|Sy t|jStk rrtd|j j dYnXdS)Nasciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r) isinstancestrrUnicodeEncodeError ValueError bytes_types memoryviewtobytes TypeError __class____name__)sr /usr/lib/python3.6/base64.py_bytes_from_decode_data"s    r"cCsDtj|dd}|dk r@t|dks.tt||jtjd|S|S)a*Encode the bytes-like object s using Base64 and return a bytes object. Optional altchars should be a byte string of length 2 which specifies an alternative alphabet for the '+' and '/' characters. This allows an application to e.g. generate url or filesystem safe Base64 strings. F)newlineNs+/)binascii b2a_base64lenAssertionErrorrepr translatebytes maketrans)raltcharsencodedr r r!r3s FcCsht|}|dk rBt|}t|dks0tt||jtj|d}|r^tjd| r^t j dt j |S)anDecode the Base64 encoded bytes-like object or ASCII string s. Optional altchars must be a bytes-like object or ASCII string of length 2 which specifies the alternative alphabet used instead of the '+' and '/' characters. The result is returned as a bytes object. A binascii.Error is raised if s is incorrectly padded. If validate is False (the default), characters that are neither in the normal base-64 alphabet nor the alternative alphabet are discarded prior to the padding check. If validate is True, these non-alphabet characters in the input result in a binascii.Error. Nr$s+/s^[A-Za-z0-9+/]*={0,2}$zNon-base64 digit found) r"r'r(r)r*r+r,rematchr%Error a2b_base64)rr-Zvalidater r r!rAs cCst|S)zrEncode bytes-like object s using the standard Base64 alphabet. The result is returned as a bytes object. )r)rr r r!rZscCst|S)aQDecode bytes encoded with the standard Base64 alphabet. Argument s is a bytes-like object or ASCII string to decode. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded. Characters that are not in the standard alphabet are discarded prior to the padding check. )r)rr r r!rass+/s-_cCst|jtS)zEncode bytes using the URL- and filesystem-safe Base64 alphabet. Argument s is a bytes-like object to encode. The result is returned as a bytes object. The alphabet uses '-' instead of '+' and '_' instead of '/'. )rr*_urlsafe_encode_translation)rr r r!roscCst|}|jt}t|S)aDecode bytes using the URL- and filesystem-safe Base64 alphabet. Argument s is a bytes-like object or ASCII string to decode. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded. Characters that are not in the URL-safe base-64 alphabet, and are not a plus '+' or slash '/', are discarded prior to the padding check. The alphabet uses '-' instead of '+' and '_' instead of '/'. )r"r*_urlsafe_decode_translationr)rr r r!rxs  s ABCDEFGHIJKLMNOPQRSTUVWXYZ234567csBtdkr,ddtDfddDadt|tsBt|j}t|d}|rb|dd|}t}tj }t}xjt dt|dD]V}||||dd}|||d ?||d ?d @||d ?d @||d @7}qW|d krd|dd<nF|dkr d|dd<n.|dkr$d|dd<n|dkr:d|dd<t |S)zKEncode the bytes-like object s using Base32 and return a bytes object. NcSsg|]}t|fqSr )r+).0ir r r! szb32encode..csg|]}D] }||q qSr r )r5ab)b32tabr r!r7srbigi s======r$s====s====i) _b32tab2 _b32alphabetrrrrr' bytearrayint from_bytesranger+)rleftoverr.rMZb32tab2r6cr )r:r!rs4   *    c CstdkrddttDat|}t|dr8tjd|dk rvt|}t|dks`tt||j t j dd|}|r|j }t|}|j d }|t|}t}t}xtd t|dD]n}|||d}d } y"x|D]} | d >|| } qWWn"tk rtjd dYnX|| jd d 7}qW|dsB|dkrLtjd|r|r| d |K} | jd d } dd |d} | d| |dd<t |S)aZDecode the Base32 encoded bytes-like object or ASCII string s. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. RFC 3548 allows for optional mapping of the digit 0 (zero) to the letter O (oh), and for optional mapping of the digit 1 (one) to either the letter I (eye) or letter L (el). The optional argument map01 when not None, specifies which letter the digit 1 should be mapped to (when map01 is not None, the digit 0 is always mapped to the letter O). For security purposes the default is None, so that 0 and 1 are not allowed in the input. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded or if there are non-alphabet characters present in the input. NcSsi|]\}}||qSr r )r5kvr r r! szb32decode..zIncorrect paddingrAs01OrErr;zNon-base32 digit foundr=rDrCrB+>rrArDrCrB)_b32rev enumeraterJr"r'r%r1r(r)r*r+r,upperrstriprKrNKeyErrorto_bytes) rcasefoldZmap01lZpadcharsdecodedZb32revr6ZquantaaccrPZlastrOr r r!r sB         cCstj|jS)zKEncode the bytes-like object s using Base16 and return a bytes object. )r%ZhexlifyrZ)rr r r!r scCs4t|}|r|j}tjd|r*tjdtj|S)aDecode the Base16 encoded bytes-like object or ASCII string s. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. The result is returned as a bytes object. A binascii.Error is raised if s is incorrectly padded or if there are non-alphabet characters present in the input. s [^0-9A-F]zNon-base16 digit found)r"rZr/searchr%r1Z unhexlify)rr^r r r!r s   s<~s~>c st|tst|j}t| d}|r4|d|}tjdt|dj|}fdd|D}|r| r|d dkrdd |d <|d d| |d<d j|S)NrCr<z!%dIcsRg|]J}r| rdn6r&|dkr&dn&|d|dd|dqS)zi yi^ Ui9r )r5Zword)charschars2foldnuls foldspacesr r!r7!sz_85encode..rArcrr;rHrHrHrH) rrrrr'structStructZunpackjoin) r9rfrgpadrhripaddingZwordschunksr )rfrgrhrir! _85encodes     rq)riwrapcolrnadobecstdkr*ddtddDaddtDat|tt|d||rHtrt|rVdnd fd dtd tD}|rt|ddkr|jd d j||rt 7S)aEncode bytes-like object b using Ascii85 and return a bytes object. foldspaces is an optional flag that uses the special short sequence 'y' instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This feature is not supported by the "standard" Adobe encoding. wrapcol controls whether the output should have newline (b'\n') characters added to it. If this is non-zero, each output line will be at most this many characters long. pad controls whether the input is padded to a multiple of 4 before encoding. Note that the btoa implementation always pads. adobe controls whether the encoded byte sequence is framed with <~ and ~>, which is used by the Adobe implementation. NcSsg|]}t|fqSr )r+)r5r6r r r!r7Dsza85encode..!vcSsg|]}tD] }||q qSr ) _a85chars)r5r8r9r r r!r7EsTr$rAcsg|]}||qSr r )r5r6)resultrrr r!r7Msrrj rH) rvrN _a85chars2rq _A85STARTmaxr'appendrm_A85END)r9rirrrnrsrpr )rwrrr!r/s"   s )rirs ignorecharsc Cst|}|rH|jts$tdjt|jtr<|dd}n |dd}tjdj }g}|j }g}|j }|j } x|dD]} d| kodknr|| t |d krrd} x|D]} d | | d } qWy||| Wn"tj k rtd dYnX| qz| dkr0|r&td|dqz|rX| dkrX|rNtd|dqz| |krfqzqztd| qzWdj|} dt |} | r| d| } | S)aDecode the Ascii85 encoded bytes-like object or ASCII string b. foldspaces is a flag that specifies whether the 'y' short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Adobe encoding. adobe controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>). ignorechars should be a byte string containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII. The result is returned as a bytes object. z1Ascii85 encoded byte sequences must end with {!r}r$Nz!IurC!rr;rertzAscii85 overflowrczz inside Ascii85 5-tuplesrdzy inside Ascii85 5-tuples zNon-Ascii85 digit found: %crjrsuuuurtuzy)r"endswithr}rformat startswithrzrkrlpackr|clearr'errorrm)r9rirsr~packIr`Zdecoded_appendZcurrZ curr_appendZ curr_clearxrarwror r r!rXsV           sU0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~cCs2tdkr$ddtDaddtDat|tt|S)zEncode bytes-like object b in base85 format and return a bytes object. If pad is true, the input is padded with b'\0' so its length is a multiple of 4 bytes before encoding. NcSsg|]}t|fqSr )r+)r5r6r r r!r7szb85encode..cSsg|]}tD] }||q qSr ) _b85chars)r5r8r9r r r!r7s)r _b85alphabet _b85chars2rq)r9rnr r r!r s c CsZtdkr0dgdaxttD]\}}|t|<qWt|}t| d}|d|}g}tjdj}xtdt|dD]}|||d}d}y"x|D]}|dt|}qWWnJt k rx2t|D]&\}}t|dkrt d||dqWYnXy|j ||Wqttj k r2t d |dYqtXqtWd j |} |rV| d| } | S) zqDecode the base85-encoded bytes-like object or ASCII string b The result is returned as a bytes object. Nr;~z!Irrez#bad base85 character at position %dz+base85 overflow in hunk starting at byte %drj)_b85decrYrr"r'rkrlrrNrrr|rrm) r9r6rProoutrchunkrajrwr r r!r s<       LrCrDcCs`xZ|jt}|sPx0t|tkrB|jtt|}|s8P||7}qWtj|}|j|qWdS)z1Encode a file; input and output are binary files.N)read MAXBINSIZEr'r%r&write)inputoutputrnsliner r r!rs   cCs,x&|j}|sPtj|}|j|qWdS)z1Decode a file; input and output are binary files.N)readliner%r2r)rrrrr r r!rs  cCsy t|}Wn8tk rD}zd|jj}t||WYdd}~XnX|jdkrjd|j|jjf}t||jdkrd|j|jjf}t|dS) Nz"expected bytes-like object, not %srPr9Bz-expected single byte elements, not %r from %srAz(expected 1-D data, not %d-D data from %s)rPr9r)rrrrrndim)rmerrmsgr r r!_input_type_checks    rcCsPt|g}x8tdt|tD]$}|||t}|jtj|qWdj|S)zVEncode a bytestring into a bytes object containing multiple lines of base-64 data.rrj)rrNr'rr|r%r&rm)rpiecesr6rr r r!r s cCsddl}|jdtdt|S)zLegacy alias of encodebytes().rNzAencodestring() is a deprecated alias since 3.1, use encodebytes()r$)warningswarnDeprecationWarningr)rrr r r! encodestringsrcCst|tj|S)z8Decode a bytestring of base-64 data into a bytes object.)rr%r2)rr r r!rscCsddl}|jdtdt|S)zLegacy alias of decodebytes().rNzHdecodestring() is a deprecated alias since Python 3.1, use decodebytes()r$)rrrr)rrr r r! decodestring$src Csddl}ddl}y|j|jddd\}}WnP|jk r~}z2|j|_t|td|jd|jdWYdd}~XnXt}xF|D]>\}}|dkrt}|dkrt }|d krt }|d krt dSqW|o|dd krt |dd }|||jj WdQRXn||j j |jj dS) zSmall main programrNrAZdeutzusage: %s [-d|-e|-u|-t] [file|-] -d, -u: decode -e: encode (default) -t: encode and decode string 'Aladdin:open sesame'r$z-ez-dz-uz-t-rb)sysgetoptargvrstderrstdoutprintexitrrtestopenbufferstdin) rrZoptsargsrfuncor8fr r r!main.s0rcCsHd}tt|t|}tt|t|}tt|||ksDtdS)NsAladdin:open sesame)rr)rrr()Zs0s1s2r r r!rHs   r__main__)N)NF)FN)F)FFF)F)2__doc__r/rkr%__all__r+rKrr"rrrrr,r3r4rrrJrIrXrr r r rvryrzr}rqrrrrrrr r Z MAXLINESIZErrrrrrrrrrrr r r r!sh     & C  )H -