A Python Interpreter written in Rust
14099 matches across 20 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 483 | def _call_with_frames_removed(f, *args, **kwds): |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 504 | def _requires_builtin_wrapper(self, fullname): |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 878 | def _load_backward_compatible(spec): |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1557 | def _install_external_importers(): |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1534 | def _get_supported_file_loaders(): |
| LOW | scripts/dis_dump.py | 195 | def _metadata_cache_slot_offsets(inst): |
| LOW | scripts/whats_left.py | 345 | def method_incompatibility_reason(typ, method_name, real_method_value): |
| LOW | scripts/update_lib/deps.py | 245 | def clear_import_graph_caches() -> None: |
| LOW | scripts/update_lib/deps.py | 1317 | def _parse_test_submodule_imports(content: str) -> dict[str, set[str]]: |
| LOW | scripts/update_lib/deps.py | 1521 | def _get_lib_modules_importing( |
| LOW | scripts/update_lib/deps.py | 1602 | def find_dependent_tests_tree( |
| LOW | scripts/update_lib/cmd_auto_mark.py | 253 | def _expand_stripped_to_children( |
| LOW | scripts/update_lib/cmd_auto_mark.py | 620 | def strip_reasonless_expected_failures( |
| LOW | scripts/update_lib/cmd_deps.py | 276 | def _format_dependent_tests_tree( |
| LOW | scripts/update_lib/tests/test_deps.py | 29 | def test_from_test_dot_module(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 47 | def test_regular_imports_ignored(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 57 | def test_syntax_error_returns_empty(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 67 | def test_auto_detect_py_module(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 167 | def test_transitive_data_dependency(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 238 | def test_syntax_error_returns_empty(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 244 | def test_relative_import_skipped(self): |
| LOW | scripts/update_lib/tests/test_deps.py | 316 | def test_identical_directories(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 655 | def test_partial_children_fail_marks_children(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 660 | def test_child_with_own_override_not_consolidated(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 665 | def test_strip_then_consolidate_restores_parent_marker(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 69 | def test_parse_fail_and_error(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 260 | def test_collect_unexpected_successes(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 272 | def test_module_prefix_filtering(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 296 | def test_collect_init_module_matching(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 726 | def test_filters_across_classes(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 865 | def test_auto_mark_directory_crashed_run(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 938 | def test_stripped_markers_restored_when_crash(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 1037 | def test_stripped_markers_restored_when_crash(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 645 | def test_all_children_fail_marks_parent_with_message(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 85 | def test_parse_unexpected_success(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 103 | def test_parse_crashed_run_no_tests_result(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 119 | def test_parse_crashed_run_has_unexpected_success(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 131 | def test_parse_error_messages(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 161 | def test_parse_directory_test_multiple_submodules(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 198 | def test_parse_multiline_test_with_docstring(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 232 | def test_collect_failures_and_error_messages(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 330 | def test_extract_syntax_error_returns_empty(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 335 | def test_remove_comment_before(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 348 | def test_remove_inline_comment(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 359 | def test_remove_super_call_method(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 372 | def test_remove_async_super_call_override(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 392 | def test_remove_with_comment_after(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 407 | def test_no_removal_without_comment(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 421 | def test_strip_reason_formats(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 464 | def test_strip_with_comment_after(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 479 | def test_strip_super_call_override(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 519 | def test_no_strip_without_comment(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 532 | def test_mixed_with_and_without_reason(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 575 | def test_child_with_own_override_excluded(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 597 | def test_apply_removes_unexpected_success(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 627 | def test_apply_with_error_message(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 801 | def test_auto_mark_file_crashed_run(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 838 | def test_auto_mark_file_no_results_at_all_raises(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 909 | def test_auto_mark_directory_no_results_raises(self): |
| LOW | scripts/update_lib/tests/test_auto_mark.py | 985 | def test_stripped_markers_removed_when_complete_run(self): |
| 9523 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | Lib/code.py | 276 | more = self.push(line) |
| HIGH | Lib/numbers.py | 53 | ## binary floats (i.e. Decimal('3.14') + 2.71828 is undefined). But, |
| HIGH | Lib/locale.py | 1737 | print('Language: ', lang or '(undefined)') |
| HIGH | Lib/locale.py | 1738 | print('Encoding: ', enc or '(undefined)') |
| HIGH | Lib/locale.py | 1746 | print(' Language: ', lang or '(undefined)') |
| HIGH | Lib/locale.py | 1747 | print(' Encoding: ', enc or '(undefined)') |
| HIGH | Lib/locale.py | 1763 | print(' Language: ', lang or '(undefined)') |
| HIGH | Lib/locale.py | 1764 | print(' Encoding: ', enc or '(undefined)') |
| HIGH | Lib/test/test_poplib.py | 80 | self.push('-ERR unrecognized POP3 command "%s".' %cmd) |
| HIGH | Lib/test/test_poplib.py | 86 | asynchat.async_chat.push(self, data.encode("ISO-8859-1") + b'\r\n') |
| HIGH | Lib/test/test_poplib.py | 90 | self.push(arg) |
| HIGH | Lib/test/test_poplib.py | 94 | self.push("-ERR no such user") |
| HIGH | Lib/test/test_poplib.py | 95 | self.push('+OK password required') |
| HIGH | Lib/test/test_poplib.py | 99 | self.push("-ERR wrong password") |
| HIGH | Lib/test/test_poplib.py | 100 | self.push('+OK 10 messages') |
| HIGH | Lib/test/test_poplib.py | 103 | self.push('+OK 10 100') |
| HIGH | Lib/test/test_poplib.py | 107 | self.push('+OK %s %s' % (arg, arg)) |
| HIGH | Lib/test/test_poplib.py | 109 | self.push('+OK') |
| HIGH | Lib/test/test_poplib.py | 110 | asynchat.async_chat.push(self, LIST_RESP) |
| HIGH | Lib/test/test_poplib.py | 115 | self.push('+OK %s bytes' %len(RETR_RESP)) |
| HIGH | Lib/test/test_poplib.py | 116 | asynchat.async_chat.push(self, RETR_RESP) |
| HIGH | Lib/test/test_poplib.py | 121 | self.push('+OK message marked for deletion.') |
| HIGH | Lib/test/test_poplib.py | 124 | self.push('+OK done nothing.') |
| HIGH | Lib/test/test_poplib.py | 127 | self.push('+OK done nothing.') |
| HIGH | Lib/test/test_poplib.py | 130 | self.push('+OK done nothing.') |
| HIGH | Lib/test/test_poplib.py | 133 | self.push('+OK closing.') |
| HIGH | Lib/test/test_poplib.py | 143 | self.push('+OK Capability list follows') |
| HIGH | Lib/test/test_poplib.py | 149 | self.push(' '.join(_ln)) |
| HIGH | Lib/test/test_poplib.py | 150 | self.push('.') |
| HIGH | Lib/test/test_poplib.py | 153 | self.push('+OK I know RFC6856' |
| HIGH | Lib/test/test_poplib.py | 161 | self.push('+OK Begin TLS negotiation') |
| HIGH | Lib/test/test_poplib.py | 59 | self.push('+OK dummy pop3 server ready. <timestamp>') |
| HIGH | Lib/test/test_poplib.py | 175 | self.push('-ERR Command not permitted when TLS active') |
| HIGH | Lib/test/test_poplib.py | 434 | self.push('+OK dummy pop3 server ready. <timestamp>') |
| HIGH | Lib/test/test_gettext.py | 530 | f = gettext.c2py('n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 536 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 536 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 542 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 542 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 548 | f = gettext.c2py('(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 554 | f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 554 | f = gettext.c2py('n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2') |
| HIGH | Lib/test/test_gettext.py | 560 | f = gettext.c2py('n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3') |
| HIGH | Lib/test/test_gettext.py | 566 | f = gettext.c2py('n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5') |
| HIGH | Lib/test/test_gettext.py | 511 | f = gettext.c2py('n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2') |
| HIGH | Lib/test/test_contextlib.py | 756 | stack.push(_expect_ok) |
| HIGH | Lib/test/test_contextlib.py | 759 | stack.push(cm) |
| HIGH | Lib/test/test_contextlib.py | 761 | stack.push(_suppress_exc) |
| HIGH | Lib/test/test_contextlib.py | 764 | stack.push(cm) |
| HIGH | Lib/test/test_contextlib.py | 766 | stack.push(_expect_exc) |
| HIGH | Lib/test/test_contextlib.py | 768 | stack.push(_expect_exc) |
| HIGH | Lib/test/test_contextlib.py | 837 | stack.push(lambda *exc: False) |
| HIGH | Lib/test/test_contextlib.py | 842 | stack.push(lambda *exc: True) |
| HIGH | Lib/test/test_contextlib.py | 1010 | stack.push(suppress_exc) |
| HIGH | Lib/test/test_contextlib.py | 1082 | stack.push(suppress_exc) |
| HIGH | Lib/test/test_contextlib.py | 1089 | stack.push(lambda *exc: True) |
| HIGH | Lib/test/test_contextlib.py | 1090 | stack.push(lambda *exc: 1/0) |
| HIGH | Lib/test/test_contextlib.py | 1091 | stack.push(lambda *exc: {}[1]) |
| HIGH | Lib/test/test_contextlib.py | 941 | stack.push(suppress_exc) |
| HIGH | Lib/test/test_contextlib.py | 1107 | stack.push(cm) |
| 215 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/opcode_metadata/utils.py | 70 | |
| LOW | crates/wasm/Lib/_microdistlib.py | 13 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 429 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 736 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 848 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 914 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1243 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1401 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 1509 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 304 | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 560 | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 101 | |
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 826 | |
| LOW | crates/vm/Lib/core_modules/copyreg.py | 112 | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 457 | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 537 | |
| LOW | scripts/dis_dump.py | 142 | |
| LOW | scripts/dis_dump.py | 188 | |
| LOW | scripts/dis_dump.py | 335 | |
| LOW | scripts/crawl_sourcecode.py | 29 | |
| LOW | scripts/whats_left.py | 334 | |
| LOW | scripts/check_redundant_patches.py | 38 | |
| LOW | scripts/compare_bytecode.py | 67 | |
| LOW | scripts/compare_bytecode.py | 295 | |
| LOW | scripts/compare_bytecode.py | 385 | |
| LOW | scripts/generate_checklist.py | 44 | |
| LOW | scripts/generate_checklist.py | 156 | |
| LOW | scripts/update_lib/deps.py | 1129 | |
| LOW | scripts/update_lib/deps.py | 1255 | |
| LOW | scripts/update_lib/deps.py | 1317 | |
| LOW | scripts/update_lib/deps.py | 1364 | |
| LOW | scripts/update_lib/deps.py | 1448 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 87 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 175 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 291 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 479 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 548 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 620 | |
| LOW | scripts/update_lib/cmd_auto_mark.py | 842 | |
| LOW | scripts/update_lib/cmd_deps.py | 332 | |
| LOW | scripts/update_lib/patch_spec.py | 217 | |
| LOW | scripts/update_lib/patch_spec.py | 254 | |
| LOW | scripts/update_lib/patch_spec.py | 332 | |
| LOW | scripts/update_lib/patch_spec.py | 142 | |
| LOW | scripts/update_lib/cmd_todo.py | 450 | |
| LOW | scripts/update_lib/cmd_migrate.py | 80 | |
| LOW | scripts/update_lib/cmd_quick.py | 76 | |
| LOW | scripts/update_lib/cmd_quick.py | 325 | |
| LOW | Lib/shutil.py | 137 | |
| LOW | Lib/shutil.py | 229 | |
| LOW | Lib/shutil.py | 283 | |
| LOW | Lib/shutil.py | 409 | |
| LOW | Lib/shutil.py | 493 | |
| LOW | Lib/shutil.py | 545 | |
| LOW | Lib/shutil.py | 733 | |
| LOW | Lib/shutil.py | 810 | |
| LOW | Lib/shutil.py | 876 | |
| LOW | Lib/shutil.py | 992 | |
| LOW | Lib/shutil.py | 1064 | |
| LOW | Lib/shutil.py | 1557 | |
| 1176 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | scripts/update_lib/cmd_auto_mark.py | 184 | # ====================================================================== |
| MEDIUM | scripts/update_lib/cmd_auto_mark.py | 186 | # ---------------------------------------------------------------------- |
| MEDIUM | scripts/update_lib/cmd_auto_mark.py | 191 | # ====================================================================== |
| MEDIUM | Lib/heapq.py | 412 | # ============================================== |
| MEDIUM | Lib/heapq.py | 442 | # ----------------------------------------------- |
| MEDIUM | Lib/heapq.py | 462 | # ---------------------- |
| MEDIUM | Lib/heapq.py | 469 | # ---------------------- |
| MEDIUM | Lib/numbers.py | 50 | ## ---------------- |
| MEDIUM | Lib/random.py | 203 | ## ------------------------------------------------------- |
| MEDIUM | Lib/random.py | 277 | ## -------------------------------------------------------- |
| MEDIUM | Lib/random.py | 889 | ## ------------------------------------------------------------------ |
| MEDIUM | Lib/random.py | 930 | # ---------------------------------------------------------------------- |
| MEDIUM | Lib/random.py | 964 | ## ------------------------------------------------------ |
| MEDIUM | Lib/random.py | 1005 | ## ------------------------------------------------------ |
| MEDIUM | Lib/random.py | 1012 | # ------------------------------------------------------ |
| MEDIUM | Lib/argparse.py | 773 | # ===================== |
| MEDIUM | Lib/argparse.py | 775 | # ===================== |
| MEDIUM | Lib/argparse.py | 1471 | # ==================== |
| MEDIUM | Lib/argparse.py | 1473 | # ==================== |
| MEDIUM | Lib/argparse.py | 1482 | # ================================== |
| MEDIUM | Lib/argparse.py | 1484 | # ================================== |
| MEDIUM | Lib/argparse.py | 2740 | # ===================== |
| MEDIUM | Lib/argparse.py | 2742 | # ===================== |
| MEDIUM | Lib/argparse.py | 105 | # ============================= |
| MEDIUM | Lib/argparse.py | 107 | # ============================= |
| MEDIUM | Lib/argparse.py | 156 | # =============== |
| MEDIUM | Lib/argparse.py | 158 | # =============== |
| MEDIUM | Lib/argparse.py | 209 | # =============================== |
| MEDIUM | Lib/argparse.py | 211 | # =============================== |
| MEDIUM | Lib/argparse.py | 261 | # ======================== |
| MEDIUM | Lib/argparse.py | 263 | # ======================== |
| MEDIUM | Lib/argparse.py | 305 | # ======================= |
| MEDIUM | Lib/argparse.py | 307 | # ======================= |
| MEDIUM | Lib/argparse.py | 825 | # ============== |
| MEDIUM | Lib/argparse.py | 827 | # ============== |
| MEDIUM | Lib/argparse.py | 1334 | # ============== |
| MEDIUM | Lib/argparse.py | 1336 | # ============== |
| MEDIUM | Lib/argparse.py | 1395 | # =========================== |
| MEDIUM | Lib/argparse.py | 1397 | # =========================== |
| MEDIUM | Lib/argparse.py | 1502 | # ======================= |
| MEDIUM | Lib/argparse.py | 1504 | # ======================= |
| MEDIUM | Lib/argparse.py | 1929 | # ======================= |
| MEDIUM | Lib/argparse.py | 1931 | # ======================= |
| MEDIUM | Lib/argparse.py | 1944 | # ================================== |
| MEDIUM | Lib/argparse.py | 1946 | # ================================== |
| MEDIUM | Lib/argparse.py | 2000 | # ===================================== |
| MEDIUM | Lib/argparse.py | 2002 | # ===================================== |
| MEDIUM | Lib/argparse.py | 2563 | # ======================== |
| MEDIUM | Lib/argparse.py | 2565 | # ======================== |
| MEDIUM | Lib/argparse.py | 2595 | # ======================== |
| MEDIUM | Lib/argparse.py | 2597 | # ======================== |
| MEDIUM | Lib/argparse.py | 2695 | # ======================= |
| MEDIUM | Lib/argparse.py | 2697 | # ======================= |
| MEDIUM | Lib/argparse.py | 2762 | # =============== |
| MEDIUM | Lib/argparse.py | 2764 | # =============== |
| MEDIUM | Lib/_pylong.py | 562 | # ----------------- |
| MEDIUM | Lib/_pylong.py | 595 | # ------------ |
| MEDIUM | Lib/_pylong.py | 656 | # ------------------------ |
| MEDIUM | Lib/tarfile.py | 145 | #--------------------------------------------------------- |
| MEDIUM | Lib/tarfile.py | 147 | #--------------------------------------------------------- |
| 282 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 0 | return the path to the source file as found by the finder. |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 0 | return the path to the source file as found by the finder. |
| HIGH | Lib/importlib/_bootstrap_external.py | 0 | return the path to the source file as found by the finder. |
| HIGH | Lib/importlib/_bootstrap_external.py | 0 | return the path to the source file as found by the finder. |
| HIGH | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi |
| HIGH | Lib/importlib/_bootstrap_external.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi |
| HIGH | Lib/importlib/metadata/__init__.py | 0 | find distributions. return an iterable of all distribution instances capable of loading the metadata for packages matchi |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | Lib/codecs.py | 0 | inherit all other methods from the underlying stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | crates/vm/Lib/core_modules/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | Lib/codecs.py | 0 | return the next decoded line from the input stream. |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): # {comment} @unittest.expectedfailure def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_auto_mark.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_patch_spec.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | scripts/update_lib/tests/test_migrate.py | 0 | import unittest class testfoo(unittest.testcase): def test_one(self): pass |
| HIGH | Lib/lzma.py | 0 | return the file descriptor for the underlying file. |
| HIGH | Lib/bz2.py | 0 | return the file descriptor for the underlying file. |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | return the file descriptor for the underlying file. |
| HIGH | Lib/lzma.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e |
| HIGH | Lib/bz2.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | return buffered data without advancing the file position. always returns at least one byte of data, unless at eof. the e |
| HIGH | Lib/lzma.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati |
| HIGH | Lib/bz2.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati |
| HIGH | Lib/compression/zstd/_zstdfile.py | 0 | read a line of uncompressed bytes from the file. the terminating newline (if present) is retained. if size is non-negati |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | remove the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | replace the keyed message; raise keyerror if it doesn't exist. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| HIGH | Lib/mailbox.py | 0 | return a message representation or raise a keyerror. |
| 106 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1529 | except Exception: |
| LOW | crates/stdlib/src/_opcode.rs | 308 | except Exception as ex: |
| LOW | wasm/tests/conftest.py | 106 | except Exception as e: |
| MEDIUM | wasm/tests/conftest.py | 107 | print(f"Error waiting for page to load: {e}") |
| LOW | scripts/dis_dump.py | 103 | except Exception: |
| LOW | scripts/dis_dump.py | 183 | except Exception: |
| LOW | scripts/dis_dump.py | 192 | except Exception as e: |
| LOW | scripts/dis_dump.py | 331 | except Exception as e: |
| MEDIUM | scripts/dis_dump.py | 89 | def _unescape(m): |
| LOW | scripts/whats_left.py | 122 | except Exception as e: |
| LOW | scripts/whats_left.py | 257 | except Exception as e: |
| LOW | scripts/find_eq.py | 82 | except Exception as e: |
| LOW | scripts/compare_bytecode.py | 120 | except Exception: |
| MEDIUM | scripts/compare_bytecode.py | 441 | print("Error: %s" % exc, file=sys.stderr) |
| MEDIUM | scripts/compare_bytecode.py | 444 | print("Error: RustPython binary not found.", file=sys.stderr) |
| MEDIUM | scripts/compare_bytecode.py | 449 | print("Error: disassembler helper not found: %s" % DIS_DUMP, file=sys.stderr) |
| MEDIUM | scripts/compare_bytecode.py | 460 | print("Error: --sample must be >= 1", file=sys.stderr) |
| MEDIUM | scripts/compare_bytecode.py | 471 | print("Error: no Python files matched", file=sys.stderr) |
| LOW | scripts/update_lib/deps.py | 233 | except Exception: |
| LOW | scripts/update_lib/deps.py | 1148 | except Exception: |
| LOW | scripts/update_lib/deps.py | 1398 | except Exception: |
| LOW | scripts/update_lib/deps.py | 1438 | except Exception: |
| LOW | scripts/update_lib/deps.py | 1474 | except Exception: |
| LOW | scripts/update_lib/deps.py | 1514 | except Exception: |
| MEDIUM | scripts/update_lib/deps.py | 61 | def visit_ImportFrom(self, node): |
| MEDIUM | scripts/update_lib/cmd_auto_mark.py | 1039 | print(f"Error: {e}", file=sys.stderr) |
| LOW | scripts/update_lib/cmd_deps.py | 457 | except Exception as e: |
| MEDIUM | scripts/update_lib/cmd_deps.py | 458 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_copy_lib.py | 103 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_copy_lib.py | 106 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_patches.py | 101 | print(f"Error: {e}", file=sys.stderr) |
| LOW | scripts/update_lib/cmd_todo.py | 697 | except Exception as e: |
| MEDIUM | scripts/update_lib/cmd_todo.py | 698 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_migrate.py | 141 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_migrate.py | 144 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_quick.py | 462 | print(f"Error: {e}", file=sys.stderr) |
| MEDIUM | scripts/update_lib/cmd_quick.py | 465 | print(f"Error: {e}", file=sys.stderr) |
| LOW | scripts/update_lib/cmd_quick.py | 467 | except Exception as e: |
| MEDIUM | scripts/update_lib/cmd_quick.py | 472 | print(f"Error: {e}", file=sys.stderr) |
| LOW | Lib/shutil.py | 105 | except Exception as err: |
| LOW | Lib/shutil.py | 147 | except Exception as err: |
| LOW | Lib/shutil.py | 196 | except Exception as err: |
| LOW | Lib/pkgutil.py | 80 | except Exception: |
| LOW | Lib/rlcompleter.py | 158 | except Exception: |
| LOW | Lib/zipimport.py | 621 | except Exception: |
| LOW | Lib/zipimport.py | 669 | except Exception: |
| MEDIUM | Lib/zipimport.py | 346 | def _read_directory(archive): |
| LOW | Lib/wave.py | 405 | except Exception: |
| LOW | Lib/weakref.py | 567 | except Exception: |
| LOW | Lib/traceback.py | 1071 | except Exception as e: |
| LOW | Lib/traceback.py | 1304 | except Exception: |
| LOW | Lib/traceback.py | 1618 | except Exception: |
| LOW | Lib/traceback.py | 1626 | except Exception: |
| LOW | Lib/traceback.py | 1649 | except Exception: |
| MEDIUM | Lib/code.py | 155 | print('Error in sys.excepthook:', file=sys.stderr) |
| MEDIUM | Lib/pydoc.py | 636 | def repr_instance(self, x, level): |
| LOW | Lib/pydoc.py | 993 | except Exception: |
| LOW | Lib/pydoc.py | 1039 | except Exception: |
| LOW | Lib/pydoc.py | 1486 | except Exception: |
| LOW | Lib/pydoc.py | 2704 | except Exception as exc: |
| 556 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in |
| LOW | deny.toml | 41 | #exclude = [] |
| LOW | deny.toml | 61 | |
| LOW | deny.toml | 101 | "BSD-3-Clause", |
| LOW | deny.toml | 121 | # The package spec the clarification applies to |
| LOW | deny.toml | 141 | # One or more private registries that you might publish crates to, if a crate |
| LOW | deny.toml | 161 | highlight = "all" |
| LOW | deny.toml | 181 | #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, |
| LOW | deny.toml | 221 | ] |
| LOW | pdc.sh | 1 | |
| LOW | crates/sre_engine/benches/benches.rs | 21 | let state = State::default(); |
| LOW | crates/sre_engine/benches/benches.rs | 41 | // START GENERATED by generate_tests.py |
| LOW | crates/sre_engine/benches/benches.rs | 61 | // START GENERATED by generate_tests.py |
| LOW | crates/sre_engine/src/string.rs | 221 | /// UTF-8-like encoding). |
| LOW | crates/compiler-core/src/bytecode.rs | 761 | /// |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 121 | } |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 141 | /// Each variant is assigned a value using one of two forms: |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 161 | /// } |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 301 | }; |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 321 | /// Converts by calling `str(<value>)`. |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 561 | Self::NotEqual => "!=", |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 581 | /// - [_PyEval_BinaryOps](https://github.com/python/cpython/blob/8183fa5e3f78ca6ab862de7fb8b14f3d929421e0/Python/cev |
| LOW | crates/compiler-core/src/bytecode/oparg.rs | 641 | impl BinaryOperator { |
| LOW | crates/literal/src/escape.rs | 41 | /// Represents string types that can be escape-printed. |
| LOW | crates/host_env/src/crt_fd.rs | 161 | /// # Safety |
| LOW | crates/host_env/src/crt_fd_unsupported.rs | 101 | /// |
| LOW | crates/wasm/src/lib.rs | 81 | /// |
| LOW | crates/wasm/src/lib.rs | 101 | /// ``` |
| LOW | crates/codegen/src/ir.rs | 5161 | /// |
| LOW | crates/codegen/src/string_parser.rs | 181 | // # ^ ^^ ^ |
| LOW | crates/derive/src/lib.rs | 21 | /// - `module`: the module which contains the class -- can be omitted if in a `#[pymodule]`. |
| LOW | crates/derive/src/lib.rs | 41 | /// |
| LOW | crates/derive/src/lib.rs | 61 | /// The last parameter can optionally be of the type `&VirtualMachine` to access the VM. |
| LOW | crates/derive/src/lib.rs | 81 | /// ```rust, ignore |
| LOW | crates/derive/src/lib.rs | 101 | /// This helps inherit attributes from a parent class. |
| LOW | crates/derive/src/lib.rs | 121 | /// Note that associated functions that are annotated with `#[pymethod]` or similar **must** |
| LOW | crates/derive/src/lib.rs | 141 | let item = parse_macro_input!(item); |
| LOW | crates/derive/src/lib.rs | 161 | /// mod submodule { |
| LOW | crates/derive/src/lib.rs | 181 | /// #[pymodule] |
| LOW | crates/derive/src/lib.rs | 201 | /// ``` |
| LOW | crates/derive/src/lib.rs | 221 | /// |
| LOW | crates/derive/src/lib.rs | 241 | /// Attribute macro for struct sequence Data structs. |
| LOW | crates/derive/src/lib.rs | 301 | /// use `#[pytraverse(skip)]` on fields you wish not to trace |
| LOW | crates/common/src/float_ops.rs | 21 | /// # Examples |
| LOW | crates/common/src/linked_list.rs | 1 | // spell-checker:disable |
| LOW | crates/common/src/linked_list.rs | 21 | //! |
| LOW | crates/common/src/linked_list.rs | 61 | |
| LOW | crates/common/src/linked_list.rs | 101 | /// `PhantomPinned` field. |
| LOW | crates/common/src/linked_list.rs | 181 | // } |
| LOW | crates/common/src/linked_list.rs | 221 | pub const fn is_empty(&self) -> bool { |
| LOW | crates/common/src/boxvec.rs | 221 | /// |
| LOW | crates/common/src/boxvec.rs | 261 | } |
| LOW | crates/common/src/lock.rs | 81 | /// Must only be called from the single-threaded child process immediately |
| LOW | crates/common/src/lock.rs | 101 | |
| LOW | crates/common/src/rand.rs | 1 | /// Get `N` bytes of random data. |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 141 | |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 241 | # -> importlib._bootstrap._ModuleLock.acquire |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 261 | self.owner = None |
| LOW | crates/vm/Lib/python_builtins/_frozen_importlib.py | 281 | # |
| 609 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 2 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 4 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 7 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 10 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 11 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 13 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 14 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 14 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 14 | |
| LOW | tools/opcode_metadata/generate_rs_opcode_metadata.py | 16 | |
| LOW | tools/opcode_metadata/opcodes.py | 1 | |
| LOW | tools/opcode_metadata/cpython.py | 17 | |
| LOW | tools/opcode_metadata/cpython.py | 17 | |
| LOW | tools/opcode_metadata/cpython.py | 17 | |
| LOW | tools/opcode_metadata/cpython.py | 18 | |
| LOW | tools/opcode_metadata/utils.py | 4 | |
| LOW | tools/opcode_metadata/generate_py_opcode_metadata.py | 12 | |
| LOW | tools/opcode_metadata/generate_py_opcode_metadata.py | 15 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 1 | |
| LOW | crates/wasm/Lib/browser.py | 10 | |
| LOW | crates/wasm/Lib/browser.py | 10 | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 16 | |
| LOW | crates/vm/Lib/core_modules/codecs.py | 1125 | |
| LOW | crates/doc/generate.py | 2 | |
| LOW | crates/doc/generate.py | 17 | |
| LOW | wasm/demo/snippets/import_pypi.py | 4 | |
| LOW | examples/call_between_rust_and_python.py | 1 | |
| LOW | scripts/make_ssl_data_rs.py | 20 | |
| LOW | scripts/update_lib/deps.py | 17 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/__init__.py | 5 | |
| LOW | scripts/update_lib/patch_spec.py | 16 | |
| LOW | scripts/update_lib/file_utils.py | 13 | |
| LOW | Lib/_pyio.py | 19 | |
| LOW | Lib/_pyio.py | 19 | |
| LOW | Lib/_pyio.py | 19 | |
| LOW | Lib/lzma.py | 28 | |
| LOW | Lib/lzma.py | 29 | |
| LOW | Lib/lzma.py | 29 | |
| LOW | Lib/dis.py | 8 | |
| LOW | Lib/tty.py | 5 | |
| LOW | Lib/signal.py | 2 | |
| LOW | Lib/weakref.py | 12 | |
| 577 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/opcode_metadata/generate_py_opcode_metadata.py | 45 | # This file is generated by {script_path} |
| MEDIUM | crates/vm/Lib/python_builtins/_frozen_importlib.py | 233 | # Create an RLock for protecting the import process for the |
| MEDIUM | crates/vm/Lib/python_builtins/_frozen_importlib.py | 695 | # This function is meant for use in _setup(). |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 762 | """This method is deprecated.""" |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1153 | # This class is actually exposed publicly in a namespace package's __loader__ |
| MEDIUM | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1510 | # This function is used by PyImport_ExecCodeModuleObject(). |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 154 | # Create the dependency file |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 264 | # Create a module that imports another module |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 269 | # Create the imported modules |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 283 | # Create a module that imports itself (circular) |
| MEDIUM | scripts/update_lib/tests/test_deps.py | 301 | # Create a module that imports nonexistent module |
| MEDIUM | scripts/update_lib/tests/test_quick.py | 275 | # Create a fake test file with Lib/test structure |
| MEDIUM | Lib/_pyio.py | 273 | # Define a default pure-Python implementation for open_code() |
| MEDIUM | Lib/ipaddress.py | 1485 | """This class represents and manipulates 32-bit IPv4 network + addresses.. |
| MEDIUM | Lib/ipaddress.py | 2279 | """This class represents and manipulates 128-bit IPv6 networks. |
| MEDIUM | Lib/webbrowser.py | 702 | # Create an NSURL object representing the URL |
| MEDIUM | Lib/_compat_pickle.py | 1 | # This module is used to map the old Python 2 names to the new names used in |
| MEDIUM | Lib/bdb.py | 894 | # The following methods can be called by clients to use |
| MEDIUM | Lib/bdb.py | 945 | # This method is more useful to debug a single function call. |
| MEDIUM | Lib/zipapp.py | 134 | # Create the list of files to add to the archive now, in case |
| MEDIUM | Lib/base64.py | 434 | # The following code is originally taken (with permission) from Mercurial |
| MEDIUM | Lib/gettext.py | 13 | # This module represents the integration of work, contributions, feedback, and |
| MEDIUM | Lib/modulefinder.py | 649 | # Create the module finder and turn its crank |
| MEDIUM | Lib/subprocess.py | 1998 | # This method is called (indirectly) by __del__, so it cannot |
| MEDIUM | Lib/subprocess.py | 2206 | # This method is called from the _communicate_with_*() methods |
| MEDIUM | Lib/code.py | 162 | # This method is being overwritten in |
| MEDIUM | Lib/pydoc.py | 802 | # Create a link for methods like 'self.method(...)' |
| MEDIUM | Lib/types.py | 318 | # The following code is primarily to support functions that |
| MEDIUM | Lib/pdb.py | 254 | """This method is called when there is the remote possibility |
| MEDIUM | Lib/pdb.py | 263 | """This function is called when we stop or break at this line.""" |
| MEDIUM | Lib/pdb.py | 297 | """This function is called when a return trap is set here.""" |
| MEDIUM | Lib/pdb.py | 305 | """This function is called if an exception occurs, |
| MEDIUM | Lib/threading.py | 147 | """This class implements reentrant lock objects. |
| MEDIUM | Lib/threading.py | 330 | # This method is called only if _lock doesn't have _is_owned(). |
| MEDIUM | Lib/threading.py | 460 | """This class implements semaphore objects. |
| MEDIUM | Lib/threading.py | 1309 | # Create a local namespace to ensure that variables remain alive |
| MEDIUM | Lib/threading.py | 1553 | # Create the main thread object, |
| MEDIUM | Lib/platform.py | 9 | # This module is maintained by Marc-Andre Lemburg <mal@egenix.com>. |
| MEDIUM | Lib/inspect.py | 29 | # This module is in the public domain. No warranties. |
| MEDIUM | Lib/_opcode_metadata.py | 1 | # This file is generated by tools/opcode_metadata/generate_py_opcode_metadata.py |
| MEDIUM | Lib/annotationlib.py | 167 | # Create a new locals dict if necessary, |
| MEDIUM | Lib/fractions.py | 183 | """This class implements rational numbers. |
| MEDIUM | Lib/_ast_unparse.py | 1 | # This module contains ``ast.unparse()``, defined here |
| MEDIUM | Lib/mailbox.py | 615 | # This method is for backward compatibility only. |
| MEDIUM | Lib/ast.py | 592 | # The following code is for backward compatibility. |
| MEDIUM | Lib/doctest.py | 154 | # Create a new flag unless `name` is already known. |
| MEDIUM | Lib/doctest.py | 682 | # Create an Example, and add it to the list. |
| MEDIUM | Lib/doctest.py | 1279 | # Create a fake output target for capturing doctest output. |
| MEDIUM | Lib/_pylong.py | 147 | # This function implements a divide-and-conquer algorithm that is |
| MEDIUM | Lib/_pylong.py | 231 | # This function implements a divide-and-conquer algorithm making use |
| MEDIUM | Lib/dataclasses.py | 388 | # This function is used instead of exposing Field creation directly, |
| MEDIUM | Lib/dataclasses.py | 537 | # Create an __annotate__ function for a dataclass |
| MEDIUM | Lib/dataclasses.py | 1190 | # Create a comparison function. If the fields in the object are |
| MEDIUM | Lib/dataclasses.py | 1218 | # Create a class doc-string. |
| MEDIUM | Lib/dataclasses.py | 1350 | # Create a new dict for our new class. |
| MEDIUM | Lib/dataclasses.py | 1807 | # Create the new object, which calls __init__() and |
| MEDIUM | Lib/graphlib.py | 77 | # Create the node -> predecessor edges |
| MEDIUM | Lib/graphlib.py | 81 | # Create the predecessor -> node edges |
| MEDIUM | Lib/tarfile.py | 1128 | # Create a pax extended header if necessary. |
| MEDIUM | Lib/tarfile.py | 2334 | # Create a TarInfo object from the file. |
| 162 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | crates/vm/src/frame.rs | 8552 | let object_new = vm.ctx.types.object_type.slots.new.load(); |
| CRITICAL | crates/vm/src/frame.rs | 8554 | let object_alloc = vm.ctx.types.object_type.slots.alloc.load(); |
| CRITICAL | crates/vm/src/class.rs | 191 | let object_new = ctx.types.object_type.slots.new.load(); |
| CRITICAL | crates/vm/src/builtins/float.rs | 549 | context.types.float_type.slots.vectorcall.store(Some(vectorcall_float)); |
| CRITICAL | crates/vm/src/builtins/object.rs | 604 | ctx.types.object_type.slots.alloc.store(Some(generic_alloc)); |
| CRITICAL | crates/vm/src/vm/mod.rs | 789 | let path_contains_env = self.state.config.paths.module_search_paths.iter().any(|s| { |
| CRITICAL | crates/vm/src/vm/mod.rs | 937 | let encoding = self.state.config.settings.stdio_encoding.as_deref(); |
| CRITICAL | crates/vm/src/vm/mod.rs | 948 | Some(if self.state.config.settings.stdio_encoding.is_some() { |
| CRITICAL | crates/vm/src/vm/mod.rs | 1032 | || !self.state.config.paths.module_search_paths.is_empty(); |
| CRITICAL | crates/vm/src/stdlib/_imp.rs | 179 | .new_str(vm.state.config.settings.check_hash_pycs_mode.to_string()) |
| CRITICAL | crates/vm/src/stdlib/_io.rs | 5239 | && let Some(stdlib_dir) = vm.state.config.paths.stdlib_dir.as_deref() |
| CRITICAL | crates/vm/src/stdlib/marshal.rs | 426 | Ok(self.0.ctx.exceptions.stop_iteration.to_owned().into()) |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 263 | vm.state.config.paths.prefix.clone() |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 267 | vm.state.config.paths.base_prefix.clone() |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 271 | vm.state.config.paths.exec_prefix.clone() |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 275 | vm.state.config.paths.base_exec_prefix.clone() |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 283 | vm.state.config.paths.stdlib_dir.clone().to_pyobject(vm) |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 635 | vm.state.config.paths.base_executable.clone() |
| CRITICAL | crates/vm/src/stdlib/sys.rs | 645 | vm.state.config.paths.executable.clone() |
| CRITICAL | crates/stdlib/src/syslog.rs | 28 | if let Some(argv) = vm.state.config.settings.argv.first() |
| CRITICAL | Lib/test/test_urllib2net.py | 383 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) |
| CRITICAL | Lib/test/test_urllib2net.py | 394 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) |
| CRITICAL | Lib/test/test_urllib2net.py | 406 | self.assertIsNone(u.fp.fp.raw._sock.gettimeout()) |
| CRITICAL | Lib/test/test_urllib2net.py | 413 | self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) |
| CRITICAL | Lib/test/test_asyncio/test_proactor_events.py | 816 | self.proactor.recv.return_value.add_done_callback.assert_called_with( |
| CRITICAL | Lib/test/test_asyncio/test_proactor_events.py | 825 | self.proactor.recv.return_value.add_done_callback.assert_called_with( |
| CRITICAL | Lib/xml/dom/expatbuilder.py | 316 | self.document.doctype.entities._seq.append(node) |
| CRITICAL | Lib/xml/dom/expatbuilder.py | 322 | self.document.doctype.notations._seq.append(node) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | Lib/ipaddress.py | 29 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | Lib/ipaddress.py | 58 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | Lib/ipaddress.py | 87 | Take an IP string/int and return an object of the correct type. Args: address: A string or integer, the IP |
| HIGH | Lib/ipaddress.py | 121 | Represent an address as 4 packed bytes in network (big-endian) order. Args: address: An integer representat |
| HIGH | Lib/ipaddress.py | 305 | Collapse a list of IP objects. Example: collapse_addresses([IPv4Network('192.0.2.0/25'), |
| HIGH | Lib/ipaddress.py | 441 | Return prefix length from the bitwise netmask. Args: ip_int: An integer, the netmask in expanded bi |
| HIGH | Lib/ipaddress.py | 471 | Return prefix length from a numeric string Args: prefixlen_str: The string to be converted |
| HIGH | Lib/ipaddress.py | 496 | Turn a netmask/hostmask string into a prefix length Args: ip_str: The netmask/hostmask to be conver |
| HIGH | Lib/ipaddress.py | 792 | Remove an address from a larger block. For example: addr1 = ip_network('192.0.2.0/28') |
| HIGH | Lib/ipaddress.py | 867 | Compare two IP objects. This is only concerned about the comparison of the integer representation of th |
| HIGH | Lib/ipaddress.py | 925 | The subnets which join to make the current subnet. In the case that self contains only one IP (self._pr |
| HIGH | Lib/ipaddress.py | 978 | The supernet containing the current network. Args: prefixlen_diff: An integer, the amount the prefi |
| HIGH | Lib/ipaddress.py | 1184 | Turn the given IP string into an integer for comparison. Args: ip_str: A string, the IP ip_str. |
| HIGH | Lib/ipaddress.py | 1210 | Convert a decimal octet into an integer. Args: octet_str: A string, the number to parse. R |
| HIGH | Lib/ipaddress.py | 1649 | Turn an IPv6 ip_str into an integer. Args: ip_str: A string, the IPv6 ip_str. Returns: |
| HIGH | Lib/ipaddress.py | 1762 | Convert an IPv6 hextet string into an integer. Args: hextet_str: A string, the number to parse. |
| HIGH | Lib/ipaddress.py | 1836 | Turns a 128-bit integer into hexadecimal notation. Args: ip_int: An integer, the IP address. |
| HIGH | Lib/selectors.py | 22 | Return a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns |
| HIGH | Lib/selectors.py | 101 | Register a file object. Parameters: fileobj -- file object or file descriptor events -- events |
| HIGH | Lib/selectors.py | 124 | Unregister a file object. Parameters: fileobj -- file object or file descriptor Returns: |
| HIGH | Lib/selectors.py | 142 | Change a registered file object monitored events or attached data. Parameters: fileobj -- file object o |
| HIGH | Lib/getpass.py | 30 | Prompt for a password, with echo turned off. Args: prompt: Written on stream to ask for the input. Default: |
| HIGH | Lib/concurrent/futures/_base.py | 200 | An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (pos |
| HIGH | Lib/concurrent/futures/_base.py | 429 | Return the result of the call that the future represents. Args: timeout: The number of seconds to w |
| HIGH | Lib/concurrent/futures/_base.py | 464 | Return the exception raised by the call that the future represents. Args: timeout: The number of se |
| HIGH | Lib/concurrent/futures/_base.py | 584 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume |
| HIGH | Lib/concurrent/futures/process.py | 814 | Returns an iterator equivalent to map(fn, iter). Args: fn: A callable that will take as many argume |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pdc.sh | 10 | # If you want to customize it or adapt the checks, just add or remove it from/ to the ACTIONS |
| MEDIUM | crates/codegen/src/ir.rs | 1291 | /// Definitely reachable outside exception-only paths (b_warm) |
| MEDIUM | crates/vm/src/builtins/str.rs | 1656 | // icu4x crates are robust but CPython's capitalize() is NOT so we can skip the extra allocs. |
| MEDIUM | crates/stdlib/src/ssl/compat.rs | 1315 | // This is more robust than just checking made_progress, because: |
| LOW | Lib/shutil.py | 1625 | # what file suffixes are executable, so just pass on cmd as-is. |
| MEDIUM | Lib/trace.py | 25 | # Bioreason or Mojam Media be used in advertising or publicity pertaining to |
| LOW | Lib/difflib.py | 1413 | # Handle case where no user markup is to be added, just return line of |
| LOW | Lib/difflib.py | 1780 | # if blank line or context separator, just add it to the output list |
| LOW | Lib/difflib.py | 1785 | # if line text doesn't need wrapping, just add it to the output list |
| LOW | Lib/ftplib.py | 405 | # then we'll just use anonymous@ |
| LOW | Lib/optparse.py | 565 | # Check all the attributes we just set. There are lots of |
| LOW | Lib/threading.py | 299 | # these override the default implementations (which just call |
| MEDIUM | Lib/doctest.py | 1750 | # in conjunction with the ELLIPSIS flag. |
| LOW | Lib/argparse.py | 2367 | # for regular arguments, just add them back into the list |
| LOW | Lib/dataclasses.py | 581 | # via object.__setattr__. Otherwise, just use a simple |
| LOW | Lib/dataclasses.py | 637 | # just use the class attribute that contains the default. |
| LOW | Lib/tarfile.py | 1541 | # Normally, we could just use "utf-8" as the encoding and "strict" |
| LOW | Lib/_pydecimal.py | 3309 | # otherwise, simply return the adjusted exponent of self, as a |
| LOW | Lib/ntpath.py | 591 | # just return the old path. |
| LOW | Lib/test/test_winsound.py | 19 | # even *should* play. Instead of guessing, just call the function and assume |
| MEDIUM | Lib/test/test_wsgiref.py | 444 | # Not comprehensive, just a few random header names |
| MEDIUM | Lib/test/test_logging.py | 8 | # not be used in advertising or publicity pertaining to distribution |
| LOW | Lib/test/test_urllib2.py | 1148 | # required, so just use a dummy one to instantiate |
| MEDIUM | Lib/test/test_lzma.py | 516 | # Test robust handling of non-LZMA data following the compressed stream(s). |
| MEDIUM | Lib/test/test_os.py | 2219 | # We spawn a new process to make the test more robust (if getrlimit() |
| MEDIUM | Lib/test/test_decimal.py | 5880 | """The C Context docstrings use 'x' in order to prevent confusion |
| MEDIUM | Lib/test/test_grammar.py | 1977 | # This is not intended to be a comprehensive test, rather just to be few |
| MEDIUM | Lib/test/test_bytes.py | 2244 | # comprehensive for things like partition, etc. |
| LOW | Lib/test/test_py_compile.py | 249 | # assert_python_* helpers don't return proc object. We'll just use |
| LOW | Lib/test/test_subprocess.py | 1414 | # Subsequent invocations should just return the returncode |
| LOW | Lib/test/test_subprocess.py | 1420 | # Subsequent invocations should just return the returncode |
| MEDIUM | Lib/test/test_urllib2net.py | 35 | # Connecting to remote hosts is flaky. Make it more robust by retrying |
| MEDIUM | Lib/test/test_signal.py | 1391 | # a signal is ignored due to the aforementioned |
| MEDIUM | Lib/test/test_socketserver.py | 52 | # Don't raise an exception; it would be caught by the test harness. |
| LOW | Lib/test/test_unicode_file.py | 120 | # The 'test' functions are unittest entry points, and simply call our |
| MEDIUM | Lib/test/test_c_locale_coercion.py | 49 | # TODO: Work out a robust dynamic test for this that doesn't rely on |
| LOW | Lib/test/test_long.py | 1242 | # nonnegative second argument: round(x, n) should just return x |
| LOW | Lib/test/test_argparse.py | 172 | # redirected, simply call the function and let the enclosing function |
| LOW | Lib/test/test_types.py | 526 | # So, just use a sign flag |
| LOW | Lib/test/test_multiprocessing_main_handling.py | 81 | # so we just use "int" as a passthrough operation below |
| LOW | Lib/test/test_unittest/test_loader.py | 671 | # XXX Should this raise a ValueError or just return an empty TestSuite? |
| LOW | Lib/test/test_unittest/testmock/testmock.py | 1200 | # need to do this because MagicMock.mock_calls used to just return |
| MEDIUM | Lib/test/support/asyncore.py | 20 | # Rushing not be used in advertising or publicity pertaining to |
| MEDIUM | Lib/test/support/asynchat.py | 20 | # Rushing not be used in advertising or publicity pertaining to |
| LOW | Lib/zipfile/__init__.py | 292 | # end-of-archive record, so just return the end record we were given. |
| LOW | Lib/tkinter/__init__.py | 3854 | # right. Instead just set the command to build a list of triples |
| MEDIUM | Lib/xml/dom/minicompat.py | 18 | # defproperty -- function used in conjunction with GetattrMagic; |
| MEDIUM | Lib/xml/etree/ElementPath.py | 37 | # pertaining to distribution of the software without specific, written |
| MEDIUM | Lib/xml/etree/__init__.py | 19 | # pertaining to distribution of the software without specific, written |
| MEDIUM | Lib/xml/etree/ElementInclude.py | 31 | # pertaining to distribution of the software without specific, written |
| MEDIUM | Lib/xml/etree/ElementTree.py | 60 | # pertaining to distribution of the software without specific, written |
| MEDIUM | Lib/http/cookies.py | 12 | # pertaining to distribution of the software without specific, written |
| MEDIUM | Lib/http/server.py | 690 | # Essentially static class variables |
| MEDIUM | Lib/_pyrepl/reader.py | 304 | # facilitate the tab completion hack implemented for |
| MEDIUM | Lib/xmlrpc/client.py | 76 | # pertaining to distribution of the software without specific, written |
| LOW | Lib/asyncio/streams.py | 720 | # bytes. So just call self.read(self._limit) until EOF. |
| LOW | Lib/asyncio/base_events.py | 2024 | # All other places just add them to ready. |
| LOW | Lib/asyncio/graph.py | 143 | # just return. |
| MEDIUM | Lib/logging/config.py | 8 | # not be used in advertising or publicity pertaining to distribution |
| LOW | Lib/logging/config.py | 516 | # Ideally, we would have wanted to simply use strict type checking |
| 7 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …s/vm/Lib/python_builtins/_frozen_importlib_external.py | 1378 | # Check if the module is the name of a directory (and thus a package). |
| LOW | scripts/update_lib/deps.py | 1653 | # Check if it's a test file |
| LOW | scripts/update_lib/cmd_auto_mark.py | 661 | # Check if there's a reason (on either the decorator or before) |
| LOW | scripts/update_lib/cmd_auto_mark.py | 759 | # Check if test run failed entirely (e.g., import error, crash) |
| LOW | scripts/update_lib/cmd_auto_mark.py | 892 | # Check if test run failed entirely (e.g., import error, crash) |
| LOW | scripts/update_lib/cmd_deps.py | 305 | # Check if module is up-to-date |
| LOW | scripts/update_lib/cmd_deps.py | 363 | # Check if it's a valid module |
| LOW | scripts/update_lib/cmd_todo.py | 203 | # Check if file belongs to a tracked module |
| LOW | scripts/update_lib/cmd_todo.py | 215 | # Check if this is a hard_dep of a tracked module |
| LOW | scripts/update_lib/cmd_todo.py | 219 | # Check if exists in local lib |
| LOW | scripts/update_lib/cmd_todo.py | 352 | # Check if corresponding lib is up-to-date |
| LOW | scripts/update_lib/cmd_quick.py | 251 | # Check if there are staged changes |
| LOW | Lib/dis.py | 584 | # Set argval to the dereferenced value of the argument when |
| LOW | Lib/_py_abc.py | 131 | # Check if it's a direct subclass |
| LOW | Lib/_py_abc.py | 135 | # Check if it's a subclass of a registered class (recursive) |
| LOW | Lib/_py_abc.py | 140 | # Check if it's a subclass of a subclass (recursive) |
| LOW | Lib/zipimport.py | 358 | # Check if there's a comment. |
| LOW | Lib/pyclbr.py | 143 | # Check if it is a built-in module; we don't do much for these. |
| LOW | Lib/heapq.py | 281 | # Set childpos to index of smaller child. |
| LOW | Lib/heapq.py | 317 | # Set childpos to index of larger child. |
| LOW | Lib/traceback.py | 1360 | # Check if it works |
| LOW | Lib/types.py | 304 | # Check if 'func' is a coroutine function. |
| LOW | Lib/types.py | 309 | # Check if 'func' is a generator function. |
| LOW | Lib/poplib.py | 230 | # Check if the response has enough elements |
| LOW | Lib/plistlib.py | 683 | # Write file header |
| LOW | Lib/_py_warnings.py | 446 | # Check if message is already a Warning object |
| LOW | Lib/_py_warnings.py | 566 | # Print message and context |
| LOW | Lib/_osx_support.py | 412 | # Check if the SDK that is used during compilation actually exists, |
| LOW | Lib/compileall.py | 87 | # Check if this is a system where ProcessPoolExecutor can function. |
| LOW | Lib/doctest.py | 1803 | # Check if we should use diff. |
| LOW | Lib/doctest.py | 2200 | # Read the file, convert it to a test, and run it. |
| LOW | Lib/smtplib.py | 427 | # Check if multiline response. |
| LOW | Lib/graphlib.py | 174 | # Check if we know about this node (it was added previously using add() |
| LOW | Lib/tarfile.py | 1233 | # Check if one of the fields contains surrogate characters and thereby |
| LOW | Lib/tarfile.py | 1518 | # Check if the pax header contains a hdrcharset field. This tells us |
| LOW | Lib/typing.py | 1249 | # Check if any base that occurs after us in `bases` is either itself a |
| LOW | Lib/typing.py | 2068 | # Check if the members appears in the class dictionary... |
| LOW | Lib/tokenize.py | 389 | # Check if the line matches the encoding. |
| LOW | Lib/ctypes/util.py | 256 | # Check if the given file is an elf file: gcc can report |
| LOW | Lib/ctypes/util.py | 429 | # Check if the given file is an elf file: gcc can report |
| LOW | Lib/ctypes/__init__.py | 149 | # Check if sizeof(ctypes_type) against struct.calcsize. This |
| LOW | Lib/unittest/mock.py | 456 | # Check if spec is an async object or function |
| LOW | Lib/test/test_gzip.py | 204 | # Open the file for writing, then close it. |
| LOW | Lib/test/test_logging.py | 6246 | # Set level to NOTSET and ensure caches are empty |
| LOW | Lib/test/test_difflib.py | 258 | # Check if the problem described in patch #1413711 exists. |
| LOW | Lib/test/test_type_cache.py | 32 | # Check if global version tag has already overflowed. |
| LOW | Lib/test/test_typing.py | 4934 | # Check if a dictionary conforms to Dict type |
| LOW | Lib/test/test_typing.py | 4949 | # Check if an instance conforms to the generic class |
| LOW | Lib/test/test_typing.py | 4961 | # Check if list conforms to a List subclass |
| LOW | Lib/test/test_http_cookies.py | 104 | # Check if the cookie is loaded correctly |
| LOW | Lib/test/test_io.py | 3387 | # Check if the BOM is written only once (see issue1753). |
| LOW | Lib/test/test_compile.py | 1398 | # Check if bytecode containing jumps that simply point to the next line |
| LOW | Lib/test/test_annotationlib.py | 2351 | # Check if the passed in mutable arguments equal the originals |
| LOW | Lib/test/test_memoryio.py | 849 | bytearray(state[0]) # Check if state[0] supports the buffer interface. |
| LOW | Lib/test/test_codecs.py | 2931 | # Check if the BOM is written only once |
| LOW | Lib/test/test_ctypes/test_c_simple_type_meta.py | 346 | # Check if PyCPointerType.__init__() caches a pointer type |
| LOW | Lib/test/test_ctypes/test_c_simple_type_meta.py | 368 | # Check if PyCPointerType.__init__() caches a pointer type |
| LOW | Lib/test/test_zipfile/test_core.py | 2931 | # Read the file completely to definitely call any eof integrity |
| LOW | Lib/test/test_unittest/testmock/testmagicmethods.py | 533 | # Check if you can change behaviour of magic methods in MagicMock init |
| LOW | Lib/test/test_sqlite3/test_types.py | 352 | # Check if the stripping of colnames works. Everything after the first |
| 15 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/vm/src/getpath.rs | 111 | // Step 0: Get executable path |
| LOW | crates/vm/src/getpath.rs | 118 | // Step 1: Check for __PYVENV_LAUNCHER__ environment variable |
| LOW | crates/vm/src/getpath.rs | 134 | // Step 2: Check for venv (pyvenv.cfg) and get 'home' |
| LOW | crates/vm/src/getpath.rs | 138 | // Step 3: Check for build directory |
| LOW | crates/vm/src/getpath.rs | 141 | // Step 4: Calculate prefix via landmark search |
| LOW | crates/vm/src/getpath.rs | 145 | // Step 5: Set prefix and base_prefix |
| LOW | crates/vm/src/getpath.rs | 159 | // Step 6: Calculate exec_prefix |
| LOW | crates/vm/src/getpath.rs | 168 | // Step 7: Calculate base_executable (if not already set by __PYVENV_LAUNCHER__) |
| LOW | crates/vm/src/getpath.rs | 173 | // Step 8: Build module_search_paths |
| LOW | crates/vm/src/getpath.rs | 177 | // Step 9: Calculate stdlib_dir |
| LOW | crates/vm/src/gc_state.rs | 412 | // Step 1: Gather objects from generations 0..=generation |
| LOW | crates/vm/src/gc_state.rs | 454 | // Step 2: Build gc_refs map (copy reference counts) |
| LOW | crates/vm/src/gc_state.rs | 461 | // Step 3: Subtract internal references |
| LOW | crates/vm/src/gc_state.rs | 486 | // Step 4: Find reachable objects (gc_refs > 0) and traverse from them |
| LOW | crates/vm/src/gc_state.rs | 516 | // Step 5: Find unreachable objects |
| LOW | crates/vm/src/gc_state.rs | 572 | // Step 6: Finalize unreachable objects and handle resurrection |
| LOW | crates/vm/src/builtins/genericalias.rs | 461 | // Step 1: Unpack args |
| LOW | crates/vm/src/builtins/genericalias.rs | 464 | // Step 2: Call __typing_prepare_subst__ on each parameter |
| LOW | crates/vm/src/builtins/genericalias.rs | 480 | // Step 3: Extract final arg items |
| LOW | crates/vm/src/builtins/genericalias.rs | 498 | // Step 4: Replace all type variables |
| LOW | crates/stdlib/src/ssl.rs | 4122 | // Step 1: Send our close_notify if not already sent |
| LOW | crates/stdlib/src/ssl.rs | 4162 | // Step 2: Try to read and process peer's close_notify |
| LOW | crates/stdlib/src/ssl.rs | 4317 | // Step 3: Check again if peer has sent close_notify (non-blocking/BIO mode only) |
| LOW | crates/stdlib/src/ssl/compat.rs | 495 | // Step 1: Build the appropriate client cert verifier based on settings |
| LOW | crates/stdlib/src/ssl/compat.rs | 528 | // Step 2: Create ServerConfig builder once with the selected verifier |
| LOW | crates/stdlib/src/ssl/compat.rs | 672 | // Step 1: Build the appropriate verifier based on verification settings |
| LOW | crates/stdlib/src/ssl/compat.rs | 766 | // Step 2: Create ClientConfig builder once with the selected verifier |
| LOW | scripts/libc_posix.py | 190 | # Step 1: Get all OS contants that we do want from upstream |
| LOW | scripts/libc_posix.py | 197 | # Step 2: build dict of what consts are available per cfg. `cfg -> {consts}` |
| LOW | scripts/libc_posix.py | 207 | # Step 3: Keep only the "wanted" consts. Build a groupped mapping of `{cfgs} -> {consts}' |
| LOW | scripts/libc_posix.py | 220 | # Step 4: Build output |
| LOW | scripts/update_lib/cmd_quick.py | 115 | # Step 1: Migrate |
| LOW | scripts/update_lib/cmd_quick.py | 157 | # Step 2: Auto-mark |
| LOW | scripts/update_lib/cmd_quick.py | 449 | # Step 3: Git commit |
| LOW | Lib/encodings/idna.py | 68 | # Step 1: try ASCII |
| LOW | Lib/encodings/idna.py | 82 | # Step 2: nameprep |
| LOW | Lib/encodings/idna.py | 85 | # Step 3: UseSTD3ASCIIRules is false |
| LOW | Lib/encodings/idna.py | 86 | # Step 4: try ASCII |
| LOW | Lib/encodings/idna.py | 100 | # Step 5: Check ACE prefix |
| LOW | Lib/encodings/idna.py | 105 | # Step 6: Encode with PUNYCODE |
| LOW | Lib/encodings/idna.py | 108 | # Step 7: Prepend ACE prefix |
| LOW | Lib/encodings/idna.py | 111 | # Step 8: Check size |
| LOW | Lib/encodings/idna.py | 130 | # Step 1: Check for ASCII |
| LOW | Lib/encodings/idna.py | 141 | # Step 2: Perform nameprep |
| LOW | Lib/encodings/idna.py | 149 | # Step 3: Check for ACE prefix |
| LOW | Lib/encodings/idna.py | 154 | # Step 4: Remove ACE prefix |
| LOW | Lib/encodings/idna.py | 157 | # Step 5: Decode using PUNYCODE |
| LOW | Lib/encodings/idna.py | 164 | # Step 6: Apply ToASCII |
| LOW | Lib/encodings/idna.py | 167 | # Step 7: Compare the result of step 6 with the one of step 3 |
| LOW | Lib/encodings/idna.py | 173 | # Step 8: return the result of step 5 |
| LOW | Lib/email/header.py | 399 | # Step 1: Normalize the chunks so that all runs of identical charsets |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | Lib/test/test_fractions.py | 175 | |
| MEDIUM | Lib/test/test_itertools.py | 2446 | |
| MEDIUM | Lib/test/test_array.py | 1094 | |
| MEDIUM | Lib/test/test_generators.py | 580 | |
| MEDIUM | Lib/test/test_generators.py | 591 | |
| MEDIUM | Lib/test/test_exceptions.py | 1836 | |
| MEDIUM | Lib/test/test_compile.py | 908 | |
| MEDIUM | Lib/test/test_set.py | 21 | |
| MEDIUM | Lib/test/test_set.py | 1115 | |
| MEDIUM | Lib/test/test_deque.py | 16 | |
| MEDIUM | Lib/test/test_yield_from.py | 203 | |
| MEDIUM | Lib/test/test_yield_from.py | 204 | |
| MEDIUM | Lib/test/test_yield_from.py | 205 | |
| MEDIUM | Lib/test/test_asyncgen.py | 417 | |
| MEDIUM | Lib/test/test_asyncgen.py | 450 | |
| MEDIUM | Lib/test/test_asyncgen.py | 587 | |
| MEDIUM | Lib/test/test_asyncgen.py | 868 | |
| MEDIUM | Lib/test/test_asyncgen.py | 996 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2055 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2076 | |
| MEDIUM | Lib/test/test_asyncgen.py | 2100 | |
| MEDIUM | Lib/test/test_asyncgen.py | 837 | |
| MEDIUM | Lib/test/test_asyncgen.py | 911 | |
| MEDIUM | Lib/test/test_builtin.py | 1352 | |
| MEDIUM | Lib/test/test_dict.py | 292 | |
| MEDIUM | Lib/test/dtracedata/call_stack.py | 15 | |
| MEDIUM | Lib/test/test_unittest/test_async_case.py | 362 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/socketserver.py | 276 | def handle_request(self): |
| LOW | Lib/contextlib.py | 304 | def helper(*args, **kwds): |
| LOW | Lib/contextlib.py | 337 | def helper(*args, **kwds): |
| LOW | Lib/test/test_unparse.py | 922 | def test_function(self): |
| LOW | Lib/test/test_gc.py | 228 | def test_function(self): |
| LOW | Lib/test/test_logging.py | 2155 | def handle_request(self, request): |
| LOW | Lib/test/test_with.py | 44 | def helper(*args, **kwds): |
| LOW | Lib/test/test_marshal.py | 19 | def helper(self, sample, *extra): |
| LOW | Lib/test/test_os.py | 2519 | def helper(self): |
| LOW | Lib/test/test_functools.py | 2162 | def test_function(x): |
| LOW | Lib/test/test_annotationlib.py | 102 | def test_function(self): |
| LOW | Lib/test/test_annotationlib.py | 261 | def test_function(self): |
| LOW | Lib/test/test_type_annotations.py | 351 | def test_function(self): |
| LOW | Lib/test/test_tokenize.py | 622 | def test_function(self): |
| LOW | Lib/test/test_tokenize.py | 2632 | def test_function(self): |
| LOW | Lib/test/profilee.py | 55 | def helper(): |
| LOW | Lib/test/test_xmlrpc.py | 657 | def my_function(): |
| LOW | Lib/test/test_xmlrpc.py | 688 | def my_function(): |
| LOW | Lib/test/test_compiler_codegen.py | 70 | def test_function(self): |
| LOW | Lib/test/test_urllib2_localnet.py | 160 | def handle_request(self, request_handler): |
| LOW | Lib/test/test_regrtest.py | 2088 | def my_function(): |
| LOW | Lib/test/test_warnings/__init__.py | 2083 | def test_function(self): |
| LOW | Lib/test/test_unittest/test_break.py | 82 | def test_function(): |
| LOW | Lib/test/test_unittest/test_break.py | 113 | def test_function(): |
| LOW | Lib/test/test_unittest/test_break.py | 125 | def test_function(): |
| LOW | Lib/test/test_unittest/test_break.py | 155 | def test_function(): |
| LOW | Lib/test/test_unittest/_test_warnings.py | 44 | def test_function(self): |
| LOW | Lib/test/test_unittest/testmock/testhelpers.py | 750 | def test_function(self): |
| LOW | Lib/test/test_unittest/testmock/testthreadingmock.py | 206 | def test_function(): |
| LOW | Lib/test/test_unittest/testmock/testthreadingmock.py | 226 | def test_function(thread_id): |
| LOW | Lib/test/test_unittest/testmock/testthreadingmock.py | 252 | def test_function(thread_id): |
| LOW | Lib/test/test_unittest/testmock/testthreadingmock.py | 276 | def test_function(thread_id): |
| LOW | Lib/test/support/_hypothesis_stubs/__init__.py | 25 | def test_function(self): |
| LOW | Lib/test/test_concurrent_futures/executor.py | 18 | def my_method(self): |
| LOW | Lib/multiprocessing/managers.py | 229 | def handle_request(self, conn): |
| LOW | Lib/xmlrpc/server.py | 680 | def handle_request(self, request_text=None): |
| LOW | extra_tests/test_snippets.py | 71 | def test_function(self): |
| LOW | extra_tests/snippets/stdlib_sys_getframe.py | 10 | def test_function(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | .github/actions/install-macos-deps/action.yml | 12 | # repository before you can use this action. |
| MEDIUM | .github/actions/install-linux-deps/action.yml | 12 | # repository before you can use this action. |
| MEDIUM | Lib/heapq.py | 267 | # you can use it. |
| LOW | Lib/quopri.py | 91 | # Don't forget to include the soft line break `=' sign in the |
| MEDIUM | Lib/ntpath.py | 400 | # XXX With COMMAND.COM you can use any characters in a variable name, |
| LOW | Lib/test/test_gc.py | 1660 | # make sure to always test gc.enable() |
| LOW | Lib/test/_test_multiprocessing.py | 1368 | q.join_thread() # make sure to join the feeder thread |
| MEDIUM | Lib/test/test_logging.py | 411 | # level values which do not fit into these limitations, you can use a |
| LOW | Lib/test/test_bigmem.py | 45 | # - Don't forget to test for large indices, offsets and results and such, |
| MEDIUM | Lib/test/test_unittest/testmock/testmagicmethods.py | 533 | # Check if you can change behaviour of magic methods in MagicMock init |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/test/test_smtplib.py | 518 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 555 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 584 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 644 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_smtplib.py | 681 | m['From'] = 'foo@bar.com' |
| LOW | Lib/test/test_dataclasses/__init__.py | 2291 | self.assertEqual(C.__doc__, "Lorem ipsum") |
| LOW | Lib/test/test_dataclasses/__init__.py | 2288 | """Lorem ipsum""" |
| LOW | Lib/test/test_email/test_generator.py | 539 | msg["From"] = Address(addr_spec="foo@bar.com", display_name="Páolo") |
| LOW | Lib/test/test_email/test_email.py | 3466 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' |
| LOW | Lib/test/test_email/test_email.py | 3466 | address = '"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>' |
| LOW | Lib/test/test_email/test_email.py | 3468 | [('Jane Doe', 'jane@example.net'), |
| LOW | Lib/test/test_email/test_email.py | 3469 | ('John Doe', 'john@example.net')]) |
| LOW | Lib/test/test_email/test_email.py | 3471 | [('Jane Doe', 'jane@example.net'), |
| LOW | Lib/test/test_email/test_email.py | 3472 | ('John Doe', 'john@example.net')]) |
| LOW | Lib/test/test_email/test_email.py | 3528 | eq(addrs[0][1], 'foo@bar.com') |
| LOW | Lib/test/test_email/test_email.py | 3728 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', |
| LOW | Lib/test/test_email/test_email.py | 3728 | check('"Jane Doe" <jane@example.net>, "John Doe" <john@example.net>', |
| LOW | Lib/test/test_email/test_email.py | 4239 | ('From: foo@bar.com', ('From', 'foo@bar.com')), |
| LOW | Lib/test/test_email/test_email.py | 4272 | ['foo@bar.com', |
| LOW | Lib/test/test_email/test_email.py | 4283 | [('From', 'foo@bar.com'), |
| LOW | Lib/test/test_email/test_email.py | 4295 | ['foo@bar.com', |
| LOW | Lib/test/test_email/test_message.py | 581 | ('To', 'foo@bar.com'), |
| LOW | extra_tests/snippets/stdlib_zlib.py | 37 | lorem = bytes("Lorem ipsum dolor sit amet", "utf-8") |
| LOW | extra_tests/snippets/stdlib_zlib.py | 37 | lorem = bytes("Lorem ipsum dolor sit amet", "utf-8") |
| LOW | extra_tests/snippets/stdlib_zlib.py | 40 | b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5", |
| LOW | extra_tests/snippets/stdlib_zlib.py | 40 | b"x\x01\x01\x1a\x00\xe5\xffLorem ipsum dolor sit amet\x83\xd5\t\xc5", |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | crates/stdlib/src/ssl.rs | 14 | //! Warning: This library contains AI-generated code and comments. Do not trust any code or comment without verification |
| HIGH | Lib/subprocess.py | 258 | # which is calling `CloseHandle` as requested in [1]), so there is nothing |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | Lib/test/test_unittest/testmock/testmock.py | 600 | # Usage example |
| LOW | Lib/zipfile/__init__.py | 709 | # Usage: |