PATH:
opt
/
alt
/
python313
/
lib64
/
python3.13
from __future__ import annotations import os import sys COLORIZE = True # types if False: from typing import IO class ANSIColors: RESET = "\x1b[0m" BLACK = "\x1b[30m" BLUE = "\x1b[34m" CYAN = "\x1b[36m" GREEN = "\x1b[32m" MAGENTA = "\x1b[35m" RED = "\x1b[31m" WHITE = "\x1b[37m" # more like LIGHT GRAY YELLOW = "\x1b[33m" BOLD_BLACK = "\x1b[1;30m" # DARK GRAY BOLD_BLUE = "\x1b[1;34m" BOLD_CYAN = "\x1b[1;36m" BOLD_GREEN = "\x1b[1;32m" BOLD_MAGENTA = "\x1b[1;35m" BOLD_RED = "\x1b[1;31m" BOLD_WHITE = "\x1b[1;37m" # actual WHITE BOLD_YELLOW = "\x1b[1;33m" # intense = like bold but without being bold INTENSE_BLACK = "\x1b[90m" INTENSE_BLUE = "\x1b[94m" INTENSE_CYAN = "\x1b[96m" INTENSE_GREEN = "\x1b[92m" INTENSE_MAGENTA = "\x1b[95m" INTENSE_RED = "\x1b[91m" INTENSE_WHITE = "\x1b[97m" INTENSE_YELLOW = "\x1b[93m" BACKGROUND_BLACK = "\x1b[40m" BACKGROUND_BLUE = "\x1b[44m" BACKGROUND_CYAN = "\x1b[46m" BACKGROUND_GREEN = "\x1b[42m" BACKGROUND_MAGENTA = "\x1b[45m" BACKGROUND_RED = "\x1b[41m" BACKGROUND_WHITE = "\x1b[47m" BACKGROUND_YELLOW = "\x1b[43m" INTENSE_BACKGROUND_BLACK = "\x1b[100m" INTENSE_BACKGROUND_BLUE = "\x1b[104m" INTENSE_BACKGROUND_CYAN = "\x1b[106m" INTENSE_BACKGROUND_GREEN = "\x1b[102m" INTENSE_BACKGROUND_MAGENTA = "\x1b[105m" INTENSE_BACKGROUND_RED = "\x1b[101m" INTENSE_BACKGROUND_WHITE = "\x1b[107m" INTENSE_BACKGROUND_YELLOW = "\x1b[103m" NoColors = ANSIColors() for attr in dir(NoColors): if not attr.startswith("__"): setattr(NoColors, attr, "") def get_colors( colorize: bool = False, *, file: IO[str] | IO[bytes] | None = None ) -> ANSIColors: if colorize or can_colorize(file=file): return ANSIColors() else: return NoColors def can_colorize(*, file: IO[str] | IO[bytes] | None = None) -> bool: def _safe_getenv(k: str, fallback: str | None = None) -> str | None: """Exception-safe environment retrieval. See gh-128636.""" try: return os.environ.get(k, fallback) except Exception: return fallback if file is None: file = sys.stdout if not sys.flags.ignore_environment: if _safe_getenv("PYTHON_COLORS") == "0": return False if _safe_getenv("PYTHON_COLORS") == "1": return True if _safe_getenv("NO_COLOR"): return False if not COLORIZE: return False if _safe_getenv("FORCE_COLOR"): return True if _safe_getenv("TERM") == "dumb": return False if not hasattr(file, "fileno"): return False if sys.platform == "win32": try: import nt if not nt._supports_virtual_terminal(): return False except (ImportError, AttributeError): return False try: return os.isatty(file.fileno()) except OSError: return hasattr(file, "isatty") and file.isatty()
[+]
..
[-] tarfile.py
[edit]
[-] mailbox.py
[edit]
[-] typing.py
[edit]
[+]
urllib
[-] ftplib.py
[edit]
[+]
__pycache__
[-] imaplib.py
[edit]
[+]
importlib
[+]
dbm
[-] sre_compile.py
[edit]
[-] enum.py
[edit]
[-] _markupbase.py
[edit]
[-] graphlib.py
[edit]
[-] types.py
[edit]
[-] pdb.py
[edit]
[-] cProfile.py
[edit]
[-] fractions.py
[edit]
[-] sched.py
[edit]
[-] ipaddress.py
[edit]
[+]
pathlib
[-] inspect.py
[edit]
[-] _sitebuiltins.py
[edit]
[-] sre_constants.py
[edit]
[-] bisect.py
[edit]
[+]
logging
[-] socket.py
[edit]
[+]
curses
[-] subprocess.py
[edit]
[-] pickle.py
[edit]
[-] sre_parse.py
[edit]
[-] operator.py
[edit]
[+]
html
[+]
sqlite3
[-] timeit.py
[edit]
[-] hmac.py
[edit]
[+]
tomllib
[-] genericpath.py
[edit]
[-] _compression.py
[edit]
[+]
json
[-] locale.py
[edit]
[-] keyword.py
[edit]
[-] statistics.py
[edit]
[-] smtplib.py
[edit]
[-] pprint.py
[edit]
[-] argparse.py
[edit]
[-] colorsys.py
[edit]
[-] stringprep.py
[edit]
[+]
collections
[-] this.py
[edit]
[-] codecs.py
[edit]
[-] abc.py
[edit]
[-] token.py
[edit]
[-] random.py
[edit]
[-] pickletools.py
[edit]
[-] uuid.py
[edit]
[-] _sysconfigdata_d_linux_x86_64-linux-gnu.py
[edit]
[-] difflib.py
[edit]
[-] _ios_support.py
[edit]
[-] _osx_support.py
[edit]
[-] _pylong.py
[edit]
[-] rlcompleter.py
[edit]
[-] heapq.py
[edit]
[+]
_pyrepl
[-] pty.py
[edit]
[-] modulefinder.py
[edit]
[-] _apple_support.py
[edit]
[-] dataclasses.py
[edit]
[+]
venv
[-] _pydatetime.py
[edit]
[-] pkgutil.py
[edit]
[-] __future__.py
[edit]
[-] glob.py
[edit]
[-] tabnanny.py
[edit]
[-] socketserver.py
[edit]
[-] _py_abc.py
[edit]
[-] doctest.py
[edit]
[-] stat.py
[edit]
[-] code.py
[edit]
[-] plistlib.py
[edit]
[-] compileall.py
[edit]
[-] posixpath.py
[edit]
[-] filecmp.py
[edit]
[-] string.py
[edit]
[-] fileinput.py
[edit]
[-] dis.py
[edit]
[-] contextlib.py
[edit]
[-] struct.py
[edit]
[+]
email
[+]
zoneinfo
[-] zipimport.py
[edit]
[-] wave.py
[edit]
[-] secrets.py
[edit]
[-] antigravity.py
[edit]
[-] _android_support.py
[edit]
[-] tracemalloc.py
[edit]
[-] runpy.py
[edit]
[-] poplib.py
[edit]
[-] netrc.py
[edit]
[-] cmd.py
[edit]
[-] warnings.py
[edit]
[-] symtable.py
[edit]
[+]
lib-dynload
[-] codeop.py
[edit]
[-] opcode.py
[edit]
[-] shelve.py
[edit]
[-] _collections_abc.py
[edit]
[-] copy.py
[edit]
[-] calendar.py
[edit]
[-] weakref.py
[edit]
[-] os.py
[edit]
[-] optparse.py
[edit]
[-] _weakrefset.py
[edit]
[-] ast.py
[edit]
[-] _colorize.py
[edit]
[-] contextvars.py
[edit]
[-] profile.py
[edit]
[-] shutil.py
[edit]
[-] gzip.py
[edit]
[+]
site-packages
[-] io.py
[edit]
[+]
http
[-] bdb.py
[edit]
[-] ssl.py
[edit]
[-] decimal.py
[edit]
[-] _threading_local.py
[edit]
[-] tty.py
[edit]
[+]
encodings
[-] configparser.py
[edit]
[-] linecache.py
[edit]
[-] pydoc.py
[edit]
[+]
wsgiref
[-] ntpath.py
[edit]
[+]
unittest
[-] quopri.py
[edit]
[+]
sysconfig
[-] pstats.py
[edit]
[-] functools.py
[edit]
[-] pyclbr.py
[edit]
[-] copyreg.py
[edit]
[+]
zipfile
[-] getpass.py
[edit]
[-] threading.py
[edit]
[+]
re
[-] __hello__.py
[edit]
[-] _strptime.py
[edit]
[-] platform.py
[edit]
[-] _sysconfigdata__linux_x86_64-linux-gnu.py
[edit]
[-] gettext.py
[edit]
[+]
asyncio
[-] fnmatch.py
[edit]
[-] _pydecimal.py
[edit]
[+]
ensurepip
[-] signal.py
[edit]
[-] bz2.py
[edit]
[-] hashlib.py
[edit]
[-] csv.py
[edit]
[-] datetime.py
[edit]
[-] traceback.py
[edit]
[-] trace.py
[edit]
[-] shlex.py
[edit]
[-] mimetypes.py
[edit]
[-] tempfile.py
[edit]
[+]
xml
[+]
xmlrpc
[-] LICENSE.txt
[edit]
[+]
pydoc_data
[-] zipapp.py
[edit]
[-] lzma.py
[edit]
[-] _pyio.py
[edit]
[-] tokenize.py
[edit]
[-] py_compile.py
[edit]
[-] nturl2path.py
[edit]
[-] _compat_pickle.py
[edit]
[-] site.py
[edit]
[+]
concurrent
[-] webbrowser.py
[edit]
[+]
ctypes
[-] base64.py
[edit]
[-] queue.py
[edit]
[-] _opcode_metadata.py
[edit]
[+]
multiprocessing
[-] textwrap.py
[edit]
[-] getopt.py
[edit]
[-] _aix_support.py
[edit]
[-] selectors.py
[edit]
[-] reprlib.py
[edit]
[-] numbers.py
[edit]
[+]
config-3.13-x86_64-linux-gnu