/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
coverage
/
/opt/cloudlinux/venv/lib/python3.11/site-packages/coverage
mkdir
upload
Name
Size
Mode
Actions
fullcoverage/
-
0755
rm
htmlfiles/
-
0755
rm
__pycache__/
-
0755
rm
annotate.py
3758
0644
edit
dl
rm
bytecode.py
713
0644
edit
dl
rm
cmdline.py
34427
0644
edit
dl
rm
collector.py
20558
0644
edit
dl
rm
config.py
21989
0644
edit
dl
rm
context.py
2483
0644
edit
dl
rm
control.py
51705
0644
edit
dl
rm
data.py
7508
0644
edit
dl
rm
debug.py
17805
0644
edit
dl
rm
disposition.py
1916
0644
edit
dl
rm
env.py
6081
0644
edit
dl
rm
exceptions.py
1362
0644
edit
dl
rm
execfile.py
12133
0644
edit
dl
rm
files.py
19374
0644
edit
dl
rm
html.py
23165
0644
edit
dl
rm
inorout.py
23900
0644
edit
dl
rm
jsonreport.py
4754
0644
edit
dl
rm
lcovreport.py
4939
0644
edit
dl
rm
misc.py
12172
0644
edit
dl
rm
multiproc.py
3846
0644
edit
dl
rm
numbits.py
4669
0644
edit
dl
rm
parser.py
56720
0644
edit
dl
rm
phystokens.py
7805
0644
edit
dl
rm
plugin.py
19525
0644
edit
dl
rm
plugin_support.py
10351
0644
edit
dl
rm
py.typed
72
0644
edit
dl
rm
python.py
8066
0644
edit
dl
rm
pytracer.py
14420
0644
edit
dl
rm
report.py
10623
0644
edit
dl
rm
report_core.py
4068
0644
edit
dl
rm
results.py
13384
0644
edit
dl
rm
sqldata.py
51295
0644
edit
dl
rm
templite.py
10952
0644
edit
dl
rm
tomlconfig.py
7569
0644
edit
dl
rm
tracer.cpython-311-x86_64-linux-gnu.so
110352
0755
edit
dl
rm
types.py
5526
0644
edit
dl
rm
version.py
1431
0644
edit
dl
rm
xmlreport.py
9795
0644
edit
dl
rm
__init__.py
1284
0644
edit
dl
rm
__main__.py
257
0644
edit
dl
rm
Edit:
/opt/cloudlinux/venv/lib/python3.11/site-packages/coverage/env.py
(6081B)
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """Determine facts about the environment.""" from __future__ import annotations import os import platform import sys from typing import Any, Iterable, Tuple # debug_info() at the bottom wants to show all the globals, but not imports. # Grab the global names here to know which names to not show. Nothing defined # above this line will be in the output. _UNINTERESTING_GLOBALS = list(globals()) # These names also shouldn't be shown. _UNINTERESTING_GLOBALS += ["PYBEHAVIOR", "debug_info"] # Operating systems. WINDOWS = sys.platform == "win32" LINUX = sys.platform.startswith("linux") OSX = sys.platform == "darwin" # Python implementations. CPYTHON = (platform.python_implementation() == "CPython") PYPY = (platform.python_implementation() == "PyPy") # Python versions. We amend version_info with one more value, a zero if an # official version, or 1 if built from source beyond an official version. PYVERSION = sys.version_info + (int(platform.python_version()[-1] == "+"),) if PYPY: PYPYVERSION = sys.pypy_version_info # type: ignore[attr-defined] # Python behavior. class PYBEHAVIOR: """Flags indicating this Python's behavior.""" # Does Python conform to PEP626, Precise line numbers for debugging and other tools. # https://www.python.org/dev/peps/pep-0626 pep626 = (PYVERSION > (3, 10, 0, "alpha", 4)) # Is "if __debug__" optimized away? optimize_if_debug = not pep626 # Is "if not __debug__" optimized away? The exact details have changed # across versions. if pep626: optimize_if_not_debug = 1 elif PYPY: if PYVERSION >= (3, 9): optimize_if_not_debug = 2 elif PYVERSION[:2] == (3, 8): optimize_if_not_debug = 3 else: optimize_if_not_debug = 1 else: if PYVERSION >= (3, 8, 0, "beta", 1): optimize_if_not_debug = 2 else: optimize_if_not_debug = 1 # Can co_lnotab have negative deltas? negative_lnotab = not (PYPY and PYPYVERSION < (7, 2)) # 3.7 changed how functions with only docstrings are numbered. docstring_only_function = (not PYPY) and ((3, 7, 0, "beta", 5) <= PYVERSION <= (3, 10)) # When a break/continue/return statement in a try block jumps to a finally # block, does the finally block do the break/continue/return (pre-3.8), or # does the finally jump back to the break/continue/return (3.8) to do the # work? finally_jumps_back = ((3, 8) <= PYVERSION < (3, 10)) if PYPY and PYPYVERSION < (7, 3, 7): finally_jumps_back = False # When a function is decorated, does the trace function get called for the # @-line and also the def-line (new behavior in 3.8)? Or just the @-line # (old behavior)? trace_decorated_def = ( (PYVERSION >= (3, 8)) and (CPYTHON or (PYVERSION > (3, 8)) or (PYPYVERSION > (7, 3, 9))) ) # Functions are no longer claimed to start at their earliest decorator even though # the decorators are traced? def_ast_no_decorator = (PYPY and PYVERSION >= (3, 9)) # CPython 3.11 now jumps to the decorator line again while executing # the decorator. trace_decorator_line_again = (CPYTHON and PYVERSION > (3, 11, 0, "alpha", 3, 0)) # Are while-true loops optimized into absolute jumps with no loop setup? nix_while_true = (PYVERSION >= (3, 8)) # CPython 3.9a1 made sys.argv[0] and other reported files absolute paths. report_absolute_files = ( (CPYTHON or (PYPY and PYPYVERSION >= (7, 3, 10))) and PYVERSION >= (3, 9) ) # Lines after break/continue/return/raise are no longer compiled into the # bytecode. They used to be marked as missing, now they aren't executable. omit_after_jump = ( pep626 or (PYPY and PYVERSION >= (3, 9) and PYPYVERSION >= (7, 3, 12)) ) # PyPy has always omitted statements after return. omit_after_return = omit_after_jump or PYPY # Optimize away unreachable try-else clauses. optimize_unreachable_try_else = pep626 # Modules used to have firstlineno equal to the line number of the first # real line of code. Now they always start at 1. module_firstline_1 = pep626 # Are "if 0:" lines (and similar) kept in the compiled code? keep_constant_test = pep626 # When leaving a with-block, do we visit the with-line again for the exit? exit_through_with = (PYVERSION >= (3, 10, 0, "beta")) # Match-case construct. match_case = (PYVERSION >= (3, 10)) # Some words are keywords in some places, identifiers in other places. soft_keywords = (PYVERSION >= (3, 10)) # Modules start with a line numbered zero. This means empty modules have # only a 0-number line, which is ignored, giving a truly empty module. empty_is_empty = (PYVERSION >= (3, 11, 0, "beta", 4)) # Are comprehensions inlined (new) or compiled as called functions (old)? # Changed in https://github.com/python/cpython/pull/101441 comprehensions_are_functions = (PYVERSION <= (3, 12, 0, "alpha", 7, 0)) # Coverage.py specifics. # Are we using the C-implemented trace function? C_TRACER = os.getenv("COVERAGE_TEST_TRACER", "c") == "c" # Are we coverage-measuring ourselves? METACOV = os.getenv("COVERAGE_COVERAGE", "") != "" # Are we running our test suite? # Even when running tests, you can use COVERAGE_TESTING=0 to disable the # test-specific behavior like AST checking. TESTING = os.getenv("COVERAGE_TESTING", "") == "True" def debug_info() -> Iterable[Tuple[str, Any]]: """Return a list of (name, value) pairs for printing debug information.""" info = [ (name, value) for name, value in globals().items() if not name.startswith("_") and name not in _UNINTERESTING_GLOBALS ] info += [ (name, value) for name, value in PYBEHAVIOR.__dict__.items() if not name.startswith("_") ] return sorted(info)
Save
cmd:
run