debugpy 1.8.5__zip → 1.8.7__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {debugpy-1.8.5/src/debugpy.egg-info → debugpy-1.8.7}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +19 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +30 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +3 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +35 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +83 -84
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +92 -99
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +51 -27
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +11 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +6 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +34 -38
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +71 -69
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +0 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +81 -93
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +9 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +33 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +183 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +33 -29
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +19 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +165 -138
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +35 -36
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +22 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +37 -57
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +54 -52
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +28 -37
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +56 -53
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +604 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +551 -445
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +25 -29
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +11 -12
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +18 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +263 -214
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +7 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +187 -92
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +46 -51
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +239 -176
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +370 -297
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +78 -86
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +55 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +194 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +18 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +159 -127
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +10 -12
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55527 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +15 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +803 -511
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +18 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +32 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +11 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +16 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +27 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +4 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +8 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +50 -45
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +462 -407
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +69 -61
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +27 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +40 -42
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +20 -19
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +199 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +121 -73
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +206 -159
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +346 -334
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +75 -80
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +35 -35
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +116 -124
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +44 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +51 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +4 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +24 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +19 -20
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +45 -49
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +61 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +23 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +29 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +41 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +117 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +11 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +90 -89
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +106 -97
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +56 -46
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +5 -5
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +11165 -5326
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +5 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +53 -56
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +4 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +6 -26
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +7 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +5 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +10 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +1 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +2 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +3 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +11 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +2 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +14 -41
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +2 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +6 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +14 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1929 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +43253 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1935 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +12 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_coverage.py +30 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +58 -54
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +20 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +8 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +8 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +11 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +21 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +14 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +30 -26
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +37 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +86 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +7 -7
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +23 -24
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevconsole.py +55 -47
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd.py +732 -508
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +1 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +130 -125
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +41 -32
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +9 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +10 -9
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +103 -119
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +457 -516
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +33 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +336 -281
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +101 -131
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +148 -153
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +310 -302
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +235 -208
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +185 -218
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +428 -564
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +54 -53
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +69 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +158 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +143 -213
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +302 -333
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +220 -239
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +198 -177
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +11 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +1191 -713
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +248 -194
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +132 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +450 -346
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +305 -286
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +1479 -1097
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +54 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +170 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +190 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +542 -437
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +489 -442
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +83 -65
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +70 -76
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +17 -9
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +141 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +175 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +5 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +28 -28
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +22 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +3 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +130 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +27 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_tracing.py +85 -66
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +96 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_version.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/messaging.py +2 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/cli.py +32 -17
- {debugpy-1.8.5 → debugpy-1.8.7/src/debugpy.egg-info}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/SOURCES.txt +6 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +0 -76
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +0 -592
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +0 -19514
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +0 -19
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +0 -153
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +0 -43377
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +0 -204
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +0 -91
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py +0 -62
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +0 -48
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +0 -23
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_pysrc.py +0 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +0 -237
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +0 -32
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +0 -9
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +0 -74
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +0 -79
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +0 -507
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +0 -539
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +0 -3435
- {debugpy-1.8.5 → debugpy-1.8.7}/DESCRIPTION.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/LICENSE +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/MANIFEST.in +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/pyproject.toml +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.cfg +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/ThirdPartyNotices.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_pydevd_packaging.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/force_pydevd.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/README +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/clients.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/components.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/launchers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/servers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/sessions.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/json.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/log.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/singleton.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/sockets.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/stacks.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/timestamp.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/debuggee.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/handlers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/output.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/winapi.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/public_api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/attach_pid_injected.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/dependency_links.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/entry_points.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/top_level.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/versioneer.py +0 -0
{debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"""
|
|
2
2
|
License: Apache 2.0
|
|
3
3
|
Author: Yuli Fitterman
|
|
4
|
-
|
|
4
|
+
"""
|
|
5
5
|
import types
|
|
6
6
|
|
|
7
7
|
from _pydevd_bundle.pydevd_constants import IS_JYTHON
|
|
@@ -9,7 +9,7 @@ from _pydevd_bundle.pydevd_constants import IS_JYTHON
|
|
|
9
9
|
try:
|
|
10
10
|
import inspect
|
|
11
11
|
except:
|
|
12
|
-
import traceback
|
|
12
|
+
import traceback
|
|
13
13
|
|
|
14
14
|
traceback.print_exc() # Ok, no inspect available (search will not work)
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ from _pydev_bundle._pydev_imports_tipper import signature_from_docstring
|
|
|
18
18
|
|
|
19
19
|
def is_bound_method(obj):
|
|
20
20
|
if isinstance(obj, types.MethodType):
|
|
21
|
-
return getattr(obj,
|
|
21
|
+
return getattr(obj, "__self__", getattr(obj, "im_self", None)) is not None
|
|
22
22
|
else:
|
|
23
23
|
return False
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ def get_class_name(instance):
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
def get_bound_class_name(obj):
|
|
31
|
-
my_self = getattr(obj,
|
|
31
|
+
my_self = getattr(obj, "__self__", getattr(obj, "im_self", None))
|
|
32
32
|
if my_self is None:
|
|
33
33
|
return None
|
|
34
34
|
return get_class_name(my_self)
|
|
@@ -40,8 +40,8 @@ def get_description(obj):
|
|
|
40
40
|
except:
|
|
41
41
|
ob_call = None
|
|
42
42
|
|
|
43
|
-
if isinstance(obj, type) or type(obj).__name__ ==
|
|
44
|
-
fob = getattr(obj,
|
|
43
|
+
if isinstance(obj, type) or type(obj).__name__ == "classobj":
|
|
44
|
+
fob = getattr(obj, "__init__", lambda: None)
|
|
45
45
|
if not isinstance(fob, (types.FunctionType, types.MethodType)):
|
|
46
46
|
fob = obj
|
|
47
47
|
elif is_bound_method(ob_call):
|
|
@@ -55,16 +55,16 @@ def get_description(obj):
|
|
|
55
55
|
if isinstance(fob, (types.FunctionType, types.MethodType)):
|
|
56
56
|
spec_info = inspect.getfullargspec(fob)
|
|
57
57
|
argspec = inspect.formatargspec(*spec_info)
|
|
58
|
-
fn_name = getattr(fob,
|
|
59
|
-
if isinstance(obj, type) or type(obj).__name__ ==
|
|
58
|
+
fn_name = getattr(fob, "__name__", None)
|
|
59
|
+
if isinstance(obj, type) or type(obj).__name__ == "classobj":
|
|
60
60
|
fn_name = "__init__"
|
|
61
61
|
fn_class = getattr(obj, "__name__", "UnknownClass")
|
|
62
62
|
elif is_bound_method(obj) or is_bound_method(ob_call):
|
|
63
63
|
fn_class = get_bound_class_name(obj) or "UnknownClass"
|
|
64
64
|
|
|
65
65
|
else:
|
|
66
|
-
fn_name = getattr(fob,
|
|
67
|
-
fn_self = getattr(fob,
|
|
66
|
+
fn_name = getattr(fob, "__name__", None)
|
|
67
|
+
fn_self = getattr(fob, "__self__", None)
|
|
68
68
|
if fn_self is not None and not isinstance(fn_self, types.ModuleType):
|
|
69
69
|
fn_class = get_class_name(fn_self)
|
|
70
70
|
|
|
@@ -77,7 +77,7 @@ def create_method_stub(fn_name, fn_class, argspec, doc_string):
|
|
|
77
77
|
doc_string = "" if doc_string is None else doc_string
|
|
78
78
|
fn_stub = create_function_stub(fn_name, argspec, doc_string, indent=1 if fn_class else 0)
|
|
79
79
|
if fn_class:
|
|
80
|
-
expr = fn_class if fn_name ==
|
|
80
|
+
expr = fn_class if fn_name == "__init__" else fn_class + "()." + fn_name
|
|
81
81
|
return create_class_stub(fn_class, fn_stub) + "\n" + expr
|
|
82
82
|
else:
|
|
83
83
|
expr = fn_name
|
|
@@ -87,10 +87,10 @@ def create_method_stub(fn_name, fn_class, argspec, doc_string):
|
|
|
87
87
|
restored_signature, _ = signature_from_docstring(doc_string, fn_name)
|
|
88
88
|
if restored_signature:
|
|
89
89
|
return create_method_stub(fn_name, fn_class, restored_signature, doc_string)
|
|
90
|
-
return create_function_stub(
|
|
90
|
+
return create_function_stub("unknown", "(*args, **kwargs)", doc_string) + "\nunknown"
|
|
91
91
|
|
|
92
92
|
else:
|
|
93
|
-
return
|
|
93
|
+
return ""
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
def get_docstring(obj):
|
|
@@ -105,21 +105,20 @@ def get_docstring(obj):
|
|
|
105
105
|
from _pydev_bundle import _pydev_jy_imports_tipper
|
|
106
106
|
|
|
107
107
|
is_method, infos = _pydev_jy_imports_tipper.ismethod(obj)
|
|
108
|
-
ret =
|
|
108
|
+
ret = ""
|
|
109
109
|
if is_method:
|
|
110
110
|
for info in infos:
|
|
111
111
|
ret += info.get_as_doc()
|
|
112
112
|
return ret
|
|
113
113
|
|
|
114
114
|
else:
|
|
115
|
-
|
|
116
115
|
doc = inspect.getdoc(obj)
|
|
117
116
|
if doc is not None:
|
|
118
117
|
return doc
|
|
119
118
|
except:
|
|
120
119
|
pass
|
|
121
120
|
else:
|
|
122
|
-
return
|
|
121
|
+
return ""
|
|
123
122
|
try:
|
|
124
123
|
# if no attempt succeeded, try to return repr()...
|
|
125
124
|
return repr(obj)
|
|
@@ -129,7 +128,7 @@ def get_docstring(obj):
|
|
|
129
128
|
return str(obj.__class__)
|
|
130
129
|
except:
|
|
131
130
|
# if all fails, go to an empty string
|
|
132
|
-
return
|
|
131
|
+
return ""
|
|
133
132
|
|
|
134
133
|
|
|
135
134
|
def create_class_stub(class_name, contents):
|
|
@@ -137,9 +136,8 @@ def create_class_stub(class_name, contents):
|
|
|
137
136
|
|
|
138
137
|
|
|
139
138
|
def create_function_stub(fn_name, fn_argspec, fn_docstring, indent=0):
|
|
140
|
-
|
|
141
139
|
def shift_right(string, prefix):
|
|
142
|
-
return
|
|
140
|
+
return "".join(prefix + line for line in string.splitlines(True))
|
|
143
141
|
|
|
144
142
|
fn_docstring = shift_right(inspect.cleandoc(fn_docstring), " " * (indent + 1))
|
|
145
143
|
ret = '''
|
|
@@ -148,7 +146,7 @@ def %s%s:
|
|
|
148
146
|
pass
|
|
149
147
|
''' % (fn_name, fn_argspec, fn_docstring)
|
|
150
148
|
ret = ret[1:] # remove first /n
|
|
151
|
-
ret = ret.replace(
|
|
149
|
+
ret = ret.replace("\t", " ")
|
|
152
150
|
if indent:
|
|
153
151
|
prefix = " " * indent
|
|
154
152
|
ret = shift_right(ret, prefix)
|
{debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py
RENAMED
|
@@ -9,6 +9,7 @@ import builtins as __builtin__ # Py3
|
|
|
9
9
|
try:
|
|
10
10
|
import java.lang # @UnusedImport
|
|
11
11
|
from _pydev_bundle import _pydev_jy_imports_tipper
|
|
12
|
+
|
|
12
13
|
_pydev_imports_tipper = _pydev_jy_imports_tipper
|
|
13
14
|
except ImportError:
|
|
14
15
|
IS_JYTHON = False
|
|
@@ -17,13 +18,13 @@ except ImportError:
|
|
|
17
18
|
dir2 = _pydev_imports_tipper.generate_imports_tip_for_module
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
# =======================================================================================================================
|
|
21
22
|
# _StartsWithFilter
|
|
22
|
-
|
|
23
|
+
# =======================================================================================================================
|
|
23
24
|
class _StartsWithFilter:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
"""
|
|
26
|
+
Used because we can't create a lambda that'll use an outer scope in jython 2.1
|
|
27
|
+
"""
|
|
27
28
|
|
|
28
29
|
def __init__(self, start_with):
|
|
29
30
|
self.start_with = start_with.lower()
|
|
@@ -32,13 +33,12 @@ class _StartsWithFilter:
|
|
|
32
33
|
return name.lower().startswith(self.start_with)
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
# =======================================================================================================================
|
|
36
37
|
# Completer
|
|
37
38
|
#
|
|
38
39
|
# This class was gotten from IPython.completer (dir2 was replaced with the completer already in pydev)
|
|
39
|
-
|
|
40
|
+
# =======================================================================================================================
|
|
40
41
|
class Completer:
|
|
41
|
-
|
|
42
42
|
def __init__(self, namespace=None, global_namespace=None):
|
|
43
43
|
"""Create a new completer for the command line.
|
|
44
44
|
|
|
@@ -82,7 +82,7 @@ class Completer:
|
|
|
82
82
|
"""
|
|
83
83
|
if self.use_main_ns:
|
|
84
84
|
# In pydev this option should never be used
|
|
85
|
-
raise RuntimeError(
|
|
85
|
+
raise RuntimeError("Namespace must be provided!")
|
|
86
86
|
self.namespace = __main__.__dict__ # @UndefinedVariable
|
|
87
87
|
|
|
88
88
|
if "." in text:
|
|
@@ -148,7 +148,7 @@ class Completer:
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
def generate_completions(frame, act_tok):
|
|
151
|
-
|
|
151
|
+
"""
|
|
152
152
|
:return list(tuple(method_name, docstring, parameters, completion_type))
|
|
153
153
|
|
|
154
154
|
method_name: str
|
|
@@ -156,7 +156,7 @@ def generate_completions(frame, act_tok):
|
|
|
156
156
|
parameters: str -- i.e.: "(a, b)"
|
|
157
157
|
completion_type is an int
|
|
158
158
|
See: _pydev_bundle._pydev_imports_tipper for TYPE_ constants
|
|
159
|
-
|
|
159
|
+
"""
|
|
160
160
|
if frame is None:
|
|
161
161
|
return []
|
|
162
162
|
|
|
@@ -189,21 +189,21 @@ def completions_to_xml(completions):
|
|
|
189
189
|
|
|
190
190
|
for comp in completions:
|
|
191
191
|
msg.append('<comp p0="')
|
|
192
|
-
msg.append(valid_xml(quote(comp[0],
|
|
192
|
+
msg.append(valid_xml(quote(comp[0], "/>_= \t")))
|
|
193
193
|
msg.append('" p1="')
|
|
194
|
-
msg.append(valid_xml(quote(comp[1],
|
|
194
|
+
msg.append(valid_xml(quote(comp[1], "/>_= \t")))
|
|
195
195
|
msg.append('" p2="')
|
|
196
|
-
msg.append(valid_xml(quote(comp[2],
|
|
196
|
+
msg.append(valid_xml(quote(comp[2], "/>_= \t")))
|
|
197
197
|
msg.append('" p3="')
|
|
198
|
-
msg.append(valid_xml(quote(comp[3],
|
|
198
|
+
msg.append(valid_xml(quote(comp[3], "/>_= \t")))
|
|
199
199
|
msg.append('"/>')
|
|
200
200
|
msg.append("</xml>")
|
|
201
201
|
|
|
202
|
-
return
|
|
202
|
+
return "".join(msg)
|
|
203
203
|
|
|
204
204
|
|
|
205
|
-
identifier_start = ascii_letters +
|
|
206
|
-
identifier_part = ascii_letters +
|
|
205
|
+
identifier_start = ascii_letters + "_"
|
|
206
|
+
identifier_part = ascii_letters + "_" + digits
|
|
207
207
|
|
|
208
208
|
identifier_start = set(identifier_start)
|
|
209
209
|
identifier_part = set(identifier_part)
|
|
@@ -213,18 +213,18 @@ def isidentifier(s):
|
|
|
213
213
|
return s.isidentifier()
|
|
214
214
|
|
|
215
215
|
|
|
216
|
-
TokenAndQualifier = namedtuple(
|
|
216
|
+
TokenAndQualifier = namedtuple("TokenAndQualifier", "token, qualifier")
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
def extract_token_and_qualifier(text, line=0, column=0):
|
|
220
|
-
|
|
220
|
+
"""
|
|
221
221
|
Extracts the token a qualifier from the text given the line/colum
|
|
222
222
|
(see test_extract_token_and_qualifier for examples).
|
|
223
223
|
|
|
224
224
|
:param unicode text:
|
|
225
225
|
:param int line: 0-based
|
|
226
226
|
:param int column: 0-based
|
|
227
|
-
|
|
227
|
+
"""
|
|
228
228
|
# Note: not using the tokenize module because text should be unicode and
|
|
229
229
|
# line/column refer to the unicode text (otherwise we'd have to know
|
|
230
230
|
# those ranges after converted to bytes).
|
|
@@ -234,32 +234,32 @@ def extract_token_and_qualifier(text, line=0, column=0):
|
|
|
234
234
|
column = 0
|
|
235
235
|
|
|
236
236
|
if isinstance(text, bytes):
|
|
237
|
-
text = text.decode(
|
|
237
|
+
text = text.decode("utf-8")
|
|
238
238
|
|
|
239
239
|
lines = text.splitlines()
|
|
240
240
|
try:
|
|
241
241
|
text = lines[line]
|
|
242
242
|
except IndexError:
|
|
243
|
-
return TokenAndQualifier(
|
|
243
|
+
return TokenAndQualifier("", "")
|
|
244
244
|
|
|
245
245
|
if column >= len(text):
|
|
246
246
|
column = len(text)
|
|
247
247
|
|
|
248
248
|
text = text[:column]
|
|
249
|
-
token =
|
|
250
|
-
qualifier =
|
|
249
|
+
token = ""
|
|
250
|
+
qualifier = ""
|
|
251
251
|
|
|
252
252
|
temp_token = []
|
|
253
253
|
for i in range(column - 1, -1, -1):
|
|
254
254
|
c = text[i]
|
|
255
|
-
if c in identifier_part or isidentifier(c) or c ==
|
|
255
|
+
if c in identifier_part or isidentifier(c) or c == ".":
|
|
256
256
|
temp_token.append(c)
|
|
257
257
|
else:
|
|
258
258
|
break
|
|
259
|
-
temp_token =
|
|
260
|
-
if
|
|
261
|
-
temp_token = temp_token.split(
|
|
262
|
-
token =
|
|
259
|
+
temp_token = "".join(reversed(temp_token))
|
|
260
|
+
if "." in temp_token:
|
|
261
|
+
temp_token = temp_token.split(".")
|
|
262
|
+
token = ".".join(temp_token[:-1])
|
|
263
263
|
qualifier = temp_token[-1]
|
|
264
264
|
else:
|
|
265
265
|
qualifier = temp_token
|
{debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py
RENAMED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
def execfile(file, glob=None, loc=None):
|
|
3
3
|
if glob is None:
|
|
4
4
|
import sys
|
|
5
|
+
|
|
5
6
|
glob = sys._getframe().f_back.f_globals
|
|
6
7
|
if loc is None:
|
|
7
8
|
loc = glob
|
|
8
9
|
|
|
9
10
|
import tokenize
|
|
11
|
+
|
|
10
12
|
with tokenize.open(file) as stream:
|
|
11
13
|
contents = stream.read()
|
|
12
14
|
|
|
13
15
|
# execute the script (note: it's important to compile first to have the filename set in debug mode)
|
|
14
|
-
exec(compile(contents + "\n", file,
|
|
16
|
+
exec(compile(contents + "\n", file, "exec"), glob, loc)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def __getfilesystemencoding():
|
|
5
|
+
"""
|
|
6
|
+
Note: there's a copy of this method in interpreterInfo.py
|
|
7
|
+
"""
|
|
8
|
+
try:
|
|
9
|
+
ret = sys.getfilesystemencoding()
|
|
10
|
+
if not ret:
|
|
11
|
+
raise RuntimeError("Unable to get encoding.")
|
|
12
|
+
return ret
|
|
13
|
+
except:
|
|
14
|
+
try:
|
|
15
|
+
# Handle Jython
|
|
16
|
+
from java.lang import System # @UnresolvedImport
|
|
17
|
+
|
|
18
|
+
env = System.getProperty("os.name").lower()
|
|
19
|
+
if env.find("win") != -1:
|
|
20
|
+
return "ISO-8859-1" # mbcs does not work on Jython, so, use a (hopefully) suitable replacement
|
|
21
|
+
return "utf-8"
|
|
22
|
+
except:
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
# Only available from 2.3 onwards.
|
|
26
|
+
if sys.platform == "win32":
|
|
27
|
+
return "mbcs"
|
|
28
|
+
return "utf-8"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def getfilesystemencoding():
|
|
32
|
+
try:
|
|
33
|
+
ret = __getfilesystemencoding()
|
|
34
|
+
|
|
35
|
+
# Check if the encoding is actually there to be used!
|
|
36
|
+
if hasattr("", "encode"):
|
|
37
|
+
"".encode(ret)
|
|
38
|
+
if hasattr("", "decode"):
|
|
39
|
+
"".decode(ret)
|
|
40
|
+
|
|
41
|
+
return ret
|
|
42
|
+
except:
|
|
43
|
+
return "utf-8"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
#=======================================================================================================================
|
|
1
|
+
# =======================================================================================================================
|
|
3
2
|
# getopt code copied since gnu_getopt is not available on jython 2.1
|
|
4
|
-
|
|
3
|
+
# =======================================================================================================================
|
|
5
4
|
class GetoptError(Exception):
|
|
6
|
-
opt =
|
|
7
|
-
msg =
|
|
8
|
-
|
|
5
|
+
opt = ""
|
|
6
|
+
msg = ""
|
|
7
|
+
|
|
8
|
+
def __init__(self, msg, opt=""):
|
|
9
9
|
self.msg = msg
|
|
10
10
|
self.opt = opt
|
|
11
11
|
Exception.__init__(self, msg, opt)
|
|
@@ -30,25 +30,25 @@ def gnu_getopt(args, shortopts, longopts=[]):
|
|
|
30
30
|
|
|
31
31
|
opts = []
|
|
32
32
|
prog_args = []
|
|
33
|
-
if type(
|
|
33
|
+
if type("") == type(longopts):
|
|
34
34
|
longopts = [longopts]
|
|
35
35
|
else:
|
|
36
36
|
longopts = list(longopts)
|
|
37
37
|
|
|
38
38
|
# Allow options after non-option arguments?
|
|
39
39
|
all_options_first = False
|
|
40
|
-
if shortopts.startswith(
|
|
40
|
+
if shortopts.startswith("+"):
|
|
41
41
|
shortopts = shortopts[1:]
|
|
42
42
|
all_options_first = True
|
|
43
43
|
|
|
44
44
|
while args:
|
|
45
|
-
if args[0] ==
|
|
45
|
+
if args[0] == "--":
|
|
46
46
|
prog_args += args[1:]
|
|
47
47
|
break
|
|
48
48
|
|
|
49
|
-
if args[0][:2] ==
|
|
49
|
+
if args[0][:2] == "--":
|
|
50
50
|
opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
|
|
51
|
-
elif args[0][:1] ==
|
|
51
|
+
elif args[0][:1] == "-":
|
|
52
52
|
opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
|
|
53
53
|
else:
|
|
54
54
|
if all_options_first:
|
|
@@ -60,71 +60,74 @@ def gnu_getopt(args, shortopts, longopts=[]):
|
|
|
60
60
|
|
|
61
61
|
return opts, prog_args
|
|
62
62
|
|
|
63
|
+
|
|
63
64
|
def do_longs(opts, opt, longopts, args):
|
|
64
65
|
try:
|
|
65
|
-
i = opt.index(
|
|
66
|
+
i = opt.index("=")
|
|
66
67
|
except ValueError:
|
|
67
68
|
optarg = None
|
|
68
69
|
else:
|
|
69
|
-
opt, optarg = opt[:i], opt[i + 1:]
|
|
70
|
+
opt, optarg = opt[:i], opt[i + 1 :]
|
|
70
71
|
|
|
71
72
|
has_arg, opt = long_has_args(opt, longopts)
|
|
72
73
|
if has_arg:
|
|
73
74
|
if optarg is None:
|
|
74
75
|
if not args:
|
|
75
|
-
raise GetoptError(
|
|
76
|
+
raise GetoptError("option --%s requires argument" % opt, opt)
|
|
76
77
|
optarg, args = args[0], args[1:]
|
|
77
78
|
elif optarg:
|
|
78
|
-
raise GetoptError(
|
|
79
|
-
opts.append((
|
|
79
|
+
raise GetoptError("option --%s must not have an argument" % opt, opt)
|
|
80
|
+
opts.append(("--" + opt, optarg or ""))
|
|
80
81
|
return opts, args
|
|
81
82
|
|
|
83
|
+
|
|
82
84
|
# Return:
|
|
83
85
|
# has_arg?
|
|
84
86
|
# full option name
|
|
85
87
|
def long_has_args(opt, longopts):
|
|
86
88
|
possibilities = [o for o in longopts if o.startswith(opt)]
|
|
87
89
|
if not possibilities:
|
|
88
|
-
raise GetoptError(
|
|
90
|
+
raise GetoptError("option --%s not recognized" % opt, opt)
|
|
89
91
|
# Is there an exact match?
|
|
90
92
|
if opt in possibilities:
|
|
91
93
|
return False, opt
|
|
92
|
-
elif opt +
|
|
94
|
+
elif opt + "=" in possibilities:
|
|
93
95
|
return True, opt
|
|
94
96
|
# No exact match, so better be unique.
|
|
95
97
|
if len(possibilities) > 1:
|
|
96
98
|
# XXX since possibilities contains all valid continuations, might be
|
|
97
99
|
# nice to work them into the error msg
|
|
98
|
-
raise GetoptError(
|
|
100
|
+
raise GetoptError("option --%s not a unique prefix" % opt, opt)
|
|
99
101
|
assert len(possibilities) == 1
|
|
100
102
|
unique_match = possibilities[0]
|
|
101
|
-
has_arg = unique_match.endswith(
|
|
103
|
+
has_arg = unique_match.endswith("=")
|
|
102
104
|
if has_arg:
|
|
103
105
|
unique_match = unique_match[:-1]
|
|
104
106
|
return has_arg, unique_match
|
|
105
107
|
|
|
108
|
+
|
|
106
109
|
def do_shorts(opts, optstring, shortopts, args):
|
|
107
|
-
while optstring !=
|
|
110
|
+
while optstring != "":
|
|
108
111
|
opt, optstring = optstring[0], optstring[1:]
|
|
109
112
|
if short_has_arg(opt, shortopts):
|
|
110
|
-
if optstring ==
|
|
113
|
+
if optstring == "":
|
|
111
114
|
if not args:
|
|
112
|
-
raise GetoptError(
|
|
113
|
-
opt)
|
|
115
|
+
raise GetoptError("option -%s requires argument" % opt, opt)
|
|
114
116
|
optstring, args = args[0], args[1:]
|
|
115
|
-
optarg, optstring = optstring,
|
|
117
|
+
optarg, optstring = optstring, ""
|
|
116
118
|
else:
|
|
117
|
-
optarg =
|
|
118
|
-
opts.append((
|
|
119
|
+
optarg = ""
|
|
120
|
+
opts.append(("-" + opt, optarg))
|
|
119
121
|
return opts, args
|
|
120
122
|
|
|
123
|
+
|
|
121
124
|
def short_has_arg(opt, shortopts):
|
|
122
125
|
for i in range(len(shortopts)):
|
|
123
|
-
if opt == shortopts[i] !=
|
|
124
|
-
return shortopts.startswith(
|
|
125
|
-
raise GetoptError(
|
|
126
|
+
if opt == shortopts[i] != ":":
|
|
127
|
+
return shortopts.startswith(":", i + 1)
|
|
128
|
+
raise GetoptError("option -%s not recognized" % opt, opt)
|
|
126
129
|
|
|
127
130
|
|
|
128
|
-
|
|
131
|
+
# =======================================================================================================================
|
|
129
132
|
# End getopt code
|
|
130
|
-
|
|
133
|
+
# =======================================================================================================================
|