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.
Files changed (340) hide show
  1. {debugpy-1.8.5/src/debugpy.egg-info → debugpy-1.8.7}/PKG-INFO +1 -1
  2. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +19 -21
  3. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +30 -30
  4. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +3 -1
  5. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
  6. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +35 -32
  7. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +83 -84
  8. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +92 -99
  9. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +2 -3
  10. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +51 -27
  11. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +11 -7
  12. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +6 -5
  13. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +34 -38
  14. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +71 -69
  15. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +1 -3
  16. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +0 -1
  17. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +14 -16
  18. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +81 -93
  19. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +3 -3
  20. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +9 -8
  21. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +33 -25
  22. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +183 -170
  23. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +33 -29
  24. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +6 -4
  25. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +19 -18
  26. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +3 -3
  27. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +165 -138
  28. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
  29. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +35 -36
  30. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +22 -23
  31. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +37 -57
  32. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +54 -52
  33. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +28 -37
  34. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +56 -53
  35. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +604 -0
  36. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +551 -445
  37. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +25 -29
  38. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
  39. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +11 -12
  40. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +18 -19
  41. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
  42. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
  43. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +263 -214
  44. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +7 -10
  45. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +187 -92
  46. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
  47. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +46 -51
  48. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +239 -176
  49. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +370 -297
  50. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +78 -86
  51. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +55 -59
  52. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +194 -58
  53. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +2 -3
  54. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +18 -23
  55. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +159 -127
  56. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +10 -12
  57. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55527 -0
  58. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +15 -0
  59. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +803 -511
  60. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +18 -7
  61. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +32 -24
  62. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +11 -13
  63. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +16 -16
  64. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +27 -2
  65. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +1 -1
  66. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +4 -5
  67. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +8 -10
  68. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +50 -45
  69. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +462 -407
  70. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +69 -61
  71. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +14 -16
  72. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +27 -25
  73. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +40 -42
  74. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
  75. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +20 -19
  76. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +199 -108
  77. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +121 -73
  78. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
  79. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +206 -159
  80. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +346 -334
  81. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +75 -80
  82. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +35 -35
  83. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +116 -124
  84. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +44 -58
  85. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +51 -55
  86. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +4 -2
  87. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +24 -24
  88. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +19 -20
  89. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +45 -49
  90. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +61 -58
  91. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +23 -13
  92. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +29 -31
  93. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +41 -11
  94. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +117 -55
  95. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +11 -14
  96. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +90 -89
  97. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +106 -97
  98. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
  99. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +56 -46
  100. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +5 -5
  101. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
  102. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +11165 -5326
  103. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +5 -6
  104. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +53 -56
  105. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +1 -0
  106. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +4 -6
  107. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +6 -26
  108. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +7 -21
  109. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +5 -24
  110. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +10 -34
  111. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +1 -4
  112. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +2 -6
  113. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +3 -5
  114. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +11 -31
  115. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +2 -2
  116. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +14 -41
  117. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +2 -4
  118. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +7 -18
  119. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +6 -18
  120. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +7 -18
  121. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +1 -3
  122. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +14 -19
  123. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1929 -0
  124. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +43253 -0
  125. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
  126. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1935 -0
  127. debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
  128. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +12 -11
  129. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_coverage.py +30 -32
  130. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +58 -54
  131. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +20 -24
  132. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +8 -7
  133. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +8 -6
  134. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +11 -8
  135. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +21 -18
  136. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +17 -15
  137. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +17 -15
  138. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +6 -4
  139. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +14 -10
  140. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +30 -26
  141. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
  142. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +37 -34
  143. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +86 -73
  144. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +7 -7
  145. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
  146. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +23 -24
  147. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
  148. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevconsole.py +55 -47
  149. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd.py +732 -508
  150. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
  151. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +1 -0
  152. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
  153. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
  154. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +130 -125
  155. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
  156. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
  157. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
  158. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +41 -32
  159. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
  160. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
  161. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +1 -0
  162. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +9 -1
  163. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
  164. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
  165. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe +0 -0
  166. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
  167. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +10 -9
  168. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
  169. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
  170. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
  171. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
  172. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +103 -119
  173. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +457 -516
  174. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +33 -15
  175. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +336 -281
  176. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +101 -131
  177. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +148 -153
  178. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +310 -302
  179. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +235 -208
  180. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +185 -218
  181. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +428 -564
  182. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +54 -53
  183. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +69 -73
  184. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +158 -170
  185. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +143 -213
  186. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +302 -333
  187. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +220 -239
  188. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +198 -177
  189. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +11 -11
  190. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +1191 -713
  191. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +248 -194
  192. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +132 -120
  193. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +450 -346
  194. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +305 -286
  195. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
  196. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +1479 -1097
  197. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
  198. debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
  199. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +54 -31
  200. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +170 -149
  201. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +190 -108
  202. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +542 -437
  203. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +489 -442
  204. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +83 -65
  205. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +70 -76
  206. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +17 -9
  207. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +1 -1
  208. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +141 -120
  209. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +1 -0
  210. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +175 -149
  211. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +1 -0
  212. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +1 -0
  213. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +5 -5
  214. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +28 -28
  215. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +22 -30
  216. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +3 -2
  217. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +130 -108
  218. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +27 -14
  219. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_tracing.py +85 -66
  220. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +96 -59
  221. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_version.py +3 -3
  222. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/messaging.py +2 -1
  223. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/cli.py +32 -17
  224. {debugpy-1.8.5 → debugpy-1.8.7/src/debugpy.egg-info}/PKG-INFO +1 -1
  225. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/SOURCES.txt +6 -1
  226. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +0 -41
  227. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +0 -76
  228. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +0 -592
  229. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +0 -19514
  230. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +0 -19
  231. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +0 -153
  232. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +0 -43377
  233. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +0 -204
  234. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +0 -91
  235. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py +0 -62
  236. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +0 -41
  237. debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +0 -48
  238. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +0 -23
  239. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_pysrc.py +0 -1
  240. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +0 -237
  241. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +0 -32
  242. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +0 -9
  243. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +0 -74
  244. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
  245. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
  246. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +0 -79
  247. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
  248. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
  249. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
  250. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
  251. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
  252. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
  253. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
  254. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
  255. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
  256. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +0 -507
  257. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +0 -539
  258. debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +0 -3435
  259. {debugpy-1.8.5 → debugpy-1.8.7}/DESCRIPTION.md +0 -0
  260. {debugpy-1.8.5 → debugpy-1.8.7}/LICENSE +0 -0
  261. {debugpy-1.8.5 → debugpy-1.8.7}/MANIFEST.in +0 -0
  262. {debugpy-1.8.5 → debugpy-1.8.7}/README.md +0 -0
  263. {debugpy-1.8.5 → debugpy-1.8.7}/pyproject.toml +0 -0
  264. {debugpy-1.8.5 → debugpy-1.8.7}/setup.cfg +0 -0
  265. {debugpy-1.8.5 → debugpy-1.8.7}/setup.py +0 -0
  266. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/ThirdPartyNotices.txt +0 -0
  267. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__init__.py +0 -0
  268. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__main__.py +0 -0
  269. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/__init__.py +0 -0
  270. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_pydevd_packaging.py +0 -0
  271. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_util.py +0 -0
  272. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/force_pydevd.py +0 -0
  273. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
  274. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
  275. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
  276. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
  277. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +0 -0
  278. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
  279. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +0 -0
  280. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
  281. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +0 -0
  282. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +0 -0
  283. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +0 -0
  284. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +0 -0
  285. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +0 -0
  286. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
  287. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/README +0 -0
  288. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
  289. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +0 -0
  290. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +0 -0
  291. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +0 -0
  292. {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
  293. {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
  294. {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
  295. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +0 -0
  296. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +0 -0
  297. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +0 -0
  298. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +0 -0
  299. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +0 -0
  300. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +0 -0
  301. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +0 -0
  302. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +0 -0
  303. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +0 -0
  304. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +0 -0
  305. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +0 -0
  306. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +0 -0
  307. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +0 -0
  308. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +0 -0
  309. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +0 -0
  310. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +0 -0
  311. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +0 -0
  312. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__init__.py +0 -0
  313. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__main__.py +0 -0
  314. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/clients.py +0 -0
  315. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/components.py +0 -0
  316. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/launchers.py +0 -0
  317. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/servers.py +0 -0
  318. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/sessions.py +0 -0
  319. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/__init__.py +0 -0
  320. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/json.py +0 -0
  321. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/log.py +0 -0
  322. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/singleton.py +0 -0
  323. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/sockets.py +0 -0
  324. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/stacks.py +0 -0
  325. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/timestamp.py +0 -0
  326. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/util.py +0 -0
  327. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__init__.py +0 -0
  328. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__main__.py +0 -0
  329. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/debuggee.py +0 -0
  330. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/handlers.py +0 -0
  331. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/output.py +0 -0
  332. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/winapi.py +0 -0
  333. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/public_api.py +0 -0
  334. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/__init__.py +0 -0
  335. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/api.py +0 -0
  336. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/attach_pid_injected.py +0 -0
  337. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/dependency_links.txt +0 -0
  338. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/entry_points.txt +0 -0
  339. {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/top_level.txt +0 -0
  340. {debugpy-1.8.5 → debugpy-1.8.7}/versioneer.py +0 -0
@@ -9,13 +9,13 @@ import traceback
9
9
  from _pydev_bundle.pydev_ipython_console_011 import get_pydev_frontend
10
10
 
11
11
 
12
- #=======================================================================================================================
12
+ # =======================================================================================================================
13
13
  # InterpreterInterface
14
- #=======================================================================================================================
14
+ # =======================================================================================================================
15
15
  class InterpreterInterface(BaseInterpreterInterface):
16
- '''
17
- The methods in this class should be registered in the xml-rpc server.
18
- '''
16
+ """
17
+ The methods in this class should be registered in the xml-rpc server.
18
+ """
19
19
 
20
20
  def __init__(self, host, client_port, main_thread, show_banner=True, connect_status_queue=None):
21
21
  BaseInterpreterInterface.__init__(self, main_thread, connect_status_queue)
@@ -37,13 +37,13 @@ class InterpreterInterface(BaseInterpreterInterface):
37
37
 
38
38
  def do_add_exec(self, code_fragment):
39
39
  self.notify_about_magic()
40
- if code_fragment.text.rstrip().endswith('??'):
41
- print('IPython-->')
40
+ if code_fragment.text.rstrip().endswith("??"):
41
+ print("IPython-->")
42
42
  try:
43
43
  res = bool(self.interpreter.add_exec(code_fragment.text))
44
44
  finally:
45
- if code_fragment.text.rstrip().endswith('??'):
46
- print('<--IPython')
45
+ if code_fragment.text.rstrip().endswith("??"):
46
+ print("<--IPython")
47
47
 
48
48
  return res
49
49
 
@@ -75,23 +75,21 @@ class InterpreterInterface(BaseInterpreterInterface):
75
75
 
76
76
  def get_ipython_hidden_vars_dict(self):
77
77
  try:
78
- if hasattr(self.interpreter, 'ipython') and hasattr(self.interpreter.ipython, 'user_ns_hidden'):
78
+ if hasattr(self.interpreter, "ipython") and hasattr(self.interpreter.ipython, "user_ns_hidden"):
79
79
  user_ns_hidden = self.interpreter.ipython.user_ns_hidden
80
80
  if isinstance(user_ns_hidden, dict):
81
81
  # Since IPython 2 dict `user_ns_hidden` contains hidden variables and values
82
82
  user_hidden_dict = user_ns_hidden.copy()
83
83
  else:
84
84
  # In IPython 1.x `user_ns_hidden` used to be a set with names of hidden variables
85
- user_hidden_dict = dict([(key, val) for key, val in self.interpreter.ipython.user_ns.items()
86
- if key in user_ns_hidden])
85
+ user_hidden_dict = dict([(key, val) for key, val in self.interpreter.ipython.user_ns.items() if key in user_ns_hidden])
87
86
 
88
87
  # while `_`, `__` and `___` were not initialized, they are not presented in `user_ns_hidden`
89
- user_hidden_dict.setdefault('_', '')
90
- user_hidden_dict.setdefault('__', '')
91
- user_hidden_dict.setdefault('___', '')
88
+ user_hidden_dict.setdefault("_", "")
89
+ user_hidden_dict.setdefault("__", "")
90
+ user_hidden_dict.setdefault("___", "")
92
91
 
93
92
  return user_hidden_dict
94
93
  except:
95
94
  # Getting IPython variables shouldn't break loading frame variables
96
95
  traceback.print_exc()
97
-
@@ -27,6 +27,7 @@ from IPython.core.usage import default_banner_parts
27
27
  from IPython.utils.strdispatch import StrDispatch
28
28
  import IPython.core.release as IPythonRelease
29
29
  from IPython.terminal.interactiveshell import TerminalInteractiveShell
30
+
30
31
  try:
31
32
  from traitlets import CBool, Unicode
32
33
  except ImportError:
@@ -37,24 +38,23 @@ from _pydev_bundle.pydev_imports import xmlrpclib
37
38
 
38
39
  default_pydev_banner_parts = default_banner_parts
39
40
 
40
- default_pydev_banner = ''.join(default_pydev_banner_parts)
41
+ default_pydev_banner = "".join(default_pydev_banner_parts)
41
42
 
42
43
 
43
44
  def show_in_pager(self, strng, *args, **kwargs):
44
- """ Run a string through pager """
45
+ """Run a string through pager"""
45
46
  # On PyDev we just output the string, there are scroll bars in the console
46
47
  # to handle "paging". This is the same behaviour as when TERM==dump (see
47
48
  # page.py)
48
49
  # for compatibility with mime-bundle form:
49
50
  if isinstance(strng, dict):
50
- strng = strng.get('text/plain', strng)
51
+ strng = strng.get("text/plain", strng)
51
52
  print(strng)
52
53
 
53
54
 
54
55
  def create_editor_hook(pydev_host, pydev_client_port):
55
-
56
56
  def call_editor(filename, line=0, wait=True):
57
- """ Open an editor in PyDev """
57
+ """Open an editor in PyDev"""
58
58
  if line is None:
59
59
  line = 0
60
60
 
@@ -66,7 +66,7 @@ def create_editor_hook(pydev_host, pydev_client_port):
66
66
  # sys.__stderr__.write('Calling editor at: %s:%s\n' % (pydev_host, pydev_client_port))
67
67
 
68
68
  # Tell PyDev to open the editor
69
- server = xmlrpclib.Server('http://%s:%s' % (pydev_host, pydev_client_port))
69
+ server = xmlrpclib.Server("http://%s:%s" % (pydev_host, pydev_client_port))
70
70
  server.IPythonEditor(filename, str(line))
71
71
 
72
72
  if wait:
@@ -76,10 +76,9 @@ def create_editor_hook(pydev_host, pydev_client_port):
76
76
 
77
77
 
78
78
  class PyDevIPCompleter(IPCompleter):
79
-
80
79
  def __init__(self, *args, **kwargs):
81
- """ Create a Completer that reuses the advanced completion support of PyDev
82
- in addition to the completion support provided by IPython """
80
+ """Create a Completer that reuses the advanced completion support of PyDev
81
+ in addition to the completion support provided by IPython"""
83
82
  IPCompleter.__init__(self, *args, **kwargs)
84
83
  # Use PyDev for python matches, see getCompletions below
85
84
  if self.python_matches in self.matchers:
@@ -88,10 +87,9 @@ class PyDevIPCompleter(IPCompleter):
88
87
 
89
88
 
90
89
  class PyDevIPCompleter6(IPCompleter):
91
-
92
90
  def __init__(self, *args, **kwargs):
93
- """ Create a Completer that reuses the advanced completion support of PyDev
94
- in addition to the completion support provided by IPython """
91
+ """Create a Completer that reuses the advanced completion support of PyDev
92
+ in addition to the completion support provided by IPython"""
95
93
  IPCompleter.__init__(self, *args, **kwargs)
96
94
 
97
95
  @property
@@ -112,9 +110,7 @@ class PyDevIPCompleter6(IPCompleter):
112
110
 
113
111
 
114
112
  class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
115
- banner1 = Unicode(default_pydev_banner, config=True,
116
- help="""The part of the banner to be printed before the profile"""
117
- )
113
+ banner1 = Unicode(default_pydev_banner, config=True, help="""The part of the banner to be printed before the profile""")
118
114
 
119
115
  # TODO term_title: (can PyDev's title be changed???, see terminal.py for where to inject code, in particular set_term_title as used by %cd)
120
116
  # for now, just disable term_title
@@ -145,18 +141,18 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
145
141
  # In the PyDev Console, GUI control is done via hookable XML-RPC server
146
142
  @staticmethod
147
143
  def enable_gui(gui=None, app=None):
148
- """Switch amongst GUI input hooks by name.
149
- """
144
+ """Switch amongst GUI input hooks by name."""
150
145
  # Deferred import
151
146
  from pydev_ipython.inputhook import enable_gui as real_enable_gui
147
+
152
148
  try:
153
149
  return real_enable_gui(gui, app)
154
150
  except ValueError as e:
155
151
  raise UsageError("%s" % e)
156
152
 
157
- #-------------------------------------------------------------------------
153
+ # -------------------------------------------------------------------------
158
154
  # Things related to hooks
159
- #-------------------------------------------------------------------------
155
+ # -------------------------------------------------------------------------
160
156
 
161
157
  def init_history(self):
162
158
  # Disable history so that we don't have an additional thread for that
@@ -166,11 +162,11 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
166
162
 
167
163
  def init_hooks(self):
168
164
  super(PyDevTerminalInteractiveShell, self).init_hooks()
169
- self.set_hook('show_in_pager', show_in_pager)
165
+ self.set_hook("show_in_pager", show_in_pager)
170
166
 
171
- #-------------------------------------------------------------------------
167
+ # -------------------------------------------------------------------------
172
168
  # Things related to exceptions
173
- #-------------------------------------------------------------------------
169
+ # -------------------------------------------------------------------------
174
170
 
175
171
  def showtraceback(self, exc_tuple=None, *args, **kwargs):
176
172
  # IPython does a lot of clever stuff with Exceptions. However mostly
@@ -190,53 +186,50 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
190
186
  if tb is not None:
191
187
  traceback.print_exception(etype, value, tb)
192
188
 
193
- #-------------------------------------------------------------------------
189
+ # -------------------------------------------------------------------------
194
190
  # Things related to text completion
195
- #-------------------------------------------------------------------------
191
+ # -------------------------------------------------------------------------
196
192
 
197
193
  # The way to construct an IPCompleter changed in most versions,
198
194
  # so we have a custom, per version implementation of the construction
199
195
 
200
196
  def _new_completer_100(self):
201
- completer = PyDevIPCompleter(shell=self,
202
- namespace=self.user_ns,
203
- global_namespace=self.user_global_ns,
204
- alias_table=self.alias_manager.alias_table,
205
- use_readline=self.has_readline,
206
- parent=self,
207
- )
197
+ completer = PyDevIPCompleter(
198
+ shell=self,
199
+ namespace=self.user_ns,
200
+ global_namespace=self.user_global_ns,
201
+ alias_table=self.alias_manager.alias_table,
202
+ use_readline=self.has_readline,
203
+ parent=self,
204
+ )
208
205
  return completer
209
206
 
210
207
  def _new_completer_234(self):
211
208
  # correct for IPython versions 2.x, 3.x, 4.x
212
- completer = PyDevIPCompleter(shell=self,
213
- namespace=self.user_ns,
214
- global_namespace=self.user_global_ns,
215
- use_readline=self.has_readline,
216
- parent=self,
217
- )
209
+ completer = PyDevIPCompleter(
210
+ shell=self,
211
+ namespace=self.user_ns,
212
+ global_namespace=self.user_global_ns,
213
+ use_readline=self.has_readline,
214
+ parent=self,
215
+ )
218
216
  return completer
219
217
 
220
218
  def _new_completer_500(self):
221
- completer = PyDevIPCompleter(shell=self,
222
- namespace=self.user_ns,
223
- global_namespace=self.user_global_ns,
224
- use_readline=False,
225
- parent=self
226
- )
219
+ completer = PyDevIPCompleter(
220
+ shell=self, namespace=self.user_ns, global_namespace=self.user_global_ns, use_readline=False, parent=self
221
+ )
227
222
  return completer
228
223
 
229
224
  def _new_completer_600(self):
230
- completer = PyDevIPCompleter6(shell=self,
231
- namespace=self.user_ns,
232
- global_namespace=self.user_global_ns,
233
- use_readline=False,
234
- parent=self
235
- )
225
+ completer = PyDevIPCompleter6(
226
+ shell=self, namespace=self.user_ns, global_namespace=self.user_global_ns, use_readline=False, parent=self
227
+ )
236
228
  return completer
237
229
 
238
230
  def add_completer_hooks(self):
239
231
  from IPython.core.completerlib import module_completer, magic_run_completer, cd_completer
232
+
240
233
  try:
241
234
  from IPython.core.completerlib import reset_completer
242
235
  except ImportError:
@@ -245,16 +238,16 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
245
238
  self.configurables.append(self.Completer)
246
239
 
247
240
  # Add custom completers to the basic ones built into IPCompleter
248
- sdisp = self.strdispatchers.get('complete_command', StrDispatch())
249
- self.strdispatchers['complete_command'] = sdisp
241
+ sdisp = self.strdispatchers.get("complete_command", StrDispatch())
242
+ self.strdispatchers["complete_command"] = sdisp
250
243
  self.Completer.custom_completers = sdisp
251
244
 
252
- self.set_hook('complete_command', module_completer, str_key='import')
253
- self.set_hook('complete_command', module_completer, str_key='from')
254
- self.set_hook('complete_command', magic_run_completer, str_key='%run')
255
- self.set_hook('complete_command', cd_completer, str_key='%cd')
245
+ self.set_hook("complete_command", module_completer, str_key="import")
246
+ self.set_hook("complete_command", module_completer, str_key="from")
247
+ self.set_hook("complete_command", magic_run_completer, str_key="%run")
248
+ self.set_hook("complete_command", cd_completer, str_key="%cd")
256
249
  if reset_completer:
257
- self.set_hook('complete_command', reset_completer, str_key='%reset')
250
+ self.set_hook("complete_command", reset_completer, str_key="%reset")
258
251
 
259
252
  def init_completer(self):
260
253
  """Initialize the completion machinery.
@@ -277,7 +270,7 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
277
270
  elif IPythonRelease._version_major >= 1:
278
271
  self.Completer = self._new_completer_100()
279
272
 
280
- if hasattr(self.Completer, 'use_jedi'):
273
+ if hasattr(self.Completer, "use_jedi"):
281
274
  self.Completer.use_jedi = False
282
275
 
283
276
  self.add_completer_hooks()
@@ -289,20 +282,20 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
289
282
  if self.has_readline:
290
283
  self.set_readline_completer()
291
284
 
292
- #-------------------------------------------------------------------------
285
+ # -------------------------------------------------------------------------
293
286
  # Things related to aliases
294
- #-------------------------------------------------------------------------
287
+ # -------------------------------------------------------------------------
295
288
 
296
289
  def init_alias(self):
297
290
  # InteractiveShell defines alias's we want, but TerminalInteractiveShell defines
298
291
  # ones we don't. So don't use super and instead go right to InteractiveShell
299
292
  InteractiveShell.init_alias(self)
300
293
 
301
- #-------------------------------------------------------------------------
294
+ # -------------------------------------------------------------------------
302
295
  # Things related to exiting
303
- #-------------------------------------------------------------------------
296
+ # -------------------------------------------------------------------------
304
297
  def ask_exit(self):
305
- """ Ask the shell to exit. Can be overiden and used as a callback. """
298
+ """Ask the shell to exit. Can be overiden and used as a callback."""
306
299
  # TODO PyDev's console does not have support from the Python side to exit
307
300
  # the console. If user forces the exit (with sys.exit()) then the console
308
301
  # simply reports errors. e.g.:
@@ -323,11 +316,11 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
323
316
  # >>>
324
317
  #
325
318
  super(PyDevTerminalInteractiveShell, self).ask_exit()
326
- print('To exit the PyDev Console, terminate the console within IDE.')
319
+ print("To exit the PyDev Console, terminate the console within IDE.")
327
320
 
328
- #-------------------------------------------------------------------------
321
+ # -------------------------------------------------------------------------
329
322
  # Things related to magics
330
- #-------------------------------------------------------------------------
323
+ # -------------------------------------------------------------------------
331
324
 
332
325
  def init_magics(self):
333
326
  super(PyDevTerminalInteractiveShell, self).init_magics()
@@ -337,16 +330,15 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
337
330
  InteractiveShellABC.register(PyDevTerminalInteractiveShell) # @UndefinedVariable
338
331
 
339
332
 
340
- #=======================================================================================================================
333
+ # =======================================================================================================================
341
334
  # _PyDevFrontEnd
342
- #=======================================================================================================================
335
+ # =======================================================================================================================
343
336
  class _PyDevFrontEnd:
344
-
345
337
  version = release.__version__
346
338
 
347
339
  def __init__(self):
348
340
  # Create and initialize our IPython instance.
349
- if hasattr(PyDevTerminalInteractiveShell, '_instance') and PyDevTerminalInteractiveShell._instance is not None:
341
+ if hasattr(PyDevTerminalInteractiveShell, "_instance") and PyDevTerminalInteractiveShell._instance is not None:
350
342
  self.ipython = PyDevTerminalInteractiveShell._instance
351
343
  else:
352
344
  self.ipython = PyDevTerminalInteractiveShell.instance()
@@ -368,7 +360,7 @@ class _PyDevFrontEnd:
368
360
  self.ipython.user_global_ns.update(globals)
369
361
  self.ipython.user_ns = locals
370
362
 
371
- if hasattr(self.ipython, 'history_manager') and hasattr(self.ipython.history_manager, 'save_thread'):
363
+ if hasattr(self.ipython, "history_manager") and hasattr(self.ipython.history_manager, "save_thread"):
372
364
  self.ipython.history_manager.save_thread.pydev_do_not_trace = True # don't trace ipython history saving thread
373
365
 
374
366
  def complete(self, string):
@@ -384,7 +376,7 @@ class _PyDevFrontEnd:
384
376
  def is_complete(self, string):
385
377
  # Based on IPython 0.10.1
386
378
 
387
- if string in ('', '\n'):
379
+ if string in ("", "\n"):
388
380
  # Prefiltering, eg through ipython0, may return an empty
389
381
  # string although some operations have been accomplished. We
390
382
  # thus want to consider an empty string as a complete
@@ -396,15 +388,11 @@ class _PyDevFrontEnd:
396
388
  # complete (except if '\' was used).
397
389
  # This should probably be done in a different place (like
398
390
  # maybe 'prefilter_input' method? For now, this works.
399
- clean_string = string.rstrip('\n')
400
- if not clean_string.endswith('\\'):
401
- clean_string += '\n\n'
402
-
403
- is_complete = codeop.compile_command(
404
- clean_string,
405
- "<string>",
406
- "exec"
407
- )
391
+ clean_string = string.rstrip("\n")
392
+ if not clean_string.endswith("\\"):
393
+ clean_string += "\n\n"
394
+
395
+ is_complete = codeop.compile_command(clean_string, "<string>", "exec")
408
396
  except Exception:
409
397
  # XXX: Hack: return True so that the
410
398
  # code gets executed and the error captured.
@@ -416,18 +404,18 @@ class _PyDevFrontEnd:
416
404
  # IPython only gives context free list of completions, while PyDev
417
405
  # gives detailed information about completions.
418
406
  try:
419
- TYPE_IPYTHON = '11'
420
- TYPE_IPYTHON_MAGIC = '12'
407
+ TYPE_IPYTHON = "11"
408
+ TYPE_IPYTHON_MAGIC = "12"
421
409
  _line, ipython_completions = self.complete(text)
422
410
 
423
411
  from _pydev_bundle._pydev_completer import Completer
412
+
424
413
  completer = Completer(self.get_namespace(), None)
425
414
  ret = completer.complete(act_tok)
426
415
  append = ret.append
427
416
  ip = self.ipython
428
417
  pydev_completions = set([f[0] for f in ret])
429
418
  for ipython_completion in ipython_completions:
430
-
431
419
  # PyCharm was not expecting completions with '%'...
432
420
  # Could be fixed in the backend, but it's probably better
433
421
  # fixing it at PyCharm.
@@ -437,17 +425,19 @@ class _PyDevFrontEnd:
437
425
  if ipython_completion not in pydev_completions:
438
426
  pydev_completions.add(ipython_completion)
439
427
  inf = ip.object_inspect(ipython_completion)
440
- if inf['type_name'] == 'Magic function':
428
+ if inf["type_name"] == "Magic function":
441
429
  pydev_type = TYPE_IPYTHON_MAGIC
442
430
  else:
443
431
  pydev_type = TYPE_IPYTHON
444
- pydev_doc = inf['docstring']
432
+ pydev_doc = inf["docstring"]
445
433
  if pydev_doc is None:
446
- pydev_doc = ''
447
- append((ipython_completion, pydev_doc, '', pydev_type))
434
+ pydev_doc = ""
435
+ append((ipython_completion, pydev_doc, "", pydev_type))
448
436
  return ret
449
437
  except:
450
- import traceback;traceback.print_exc()
438
+ import traceback
439
+
440
+ traceback.print_exc()
451
441
  return []
452
442
 
453
443
  def get_namespace(self):
@@ -460,7 +450,7 @@ class _PyDevFrontEnd:
460
450
  if self._curr_exec_lines:
461
451
  self._curr_exec_lines.append(line)
462
452
 
463
- buf = '\n'.join(self._curr_exec_lines)
453
+ buf = "\n".join(self._curr_exec_lines)
464
454
 
465
455
  if self.is_complete(buf):
466
456
  self._curr_exec_line += 1
@@ -470,7 +460,6 @@ class _PyDevFrontEnd:
470
460
 
471
461
  return True # needs more
472
462
  else:
473
-
474
463
  if not self.is_complete(line):
475
464
  # Did not execute
476
465
  self._curr_exec_lines.append(line)
@@ -488,7 +477,7 @@ class _PyDevFrontEnd:
488
477
  return self.ipython.automagic
489
478
 
490
479
  def get_greeting_msg(self):
491
- return 'PyDev console: using IPython %s\n' % self.version
480
+ return "PyDev console: using IPython %s\n" % self.version
492
481
 
493
482
 
494
483
  class _PyDevFrontEndContainer:
@@ -506,11 +495,10 @@ def get_pydev_frontend(pydev_host, pydev_client_port):
506
495
  # Back channel to PyDev to open editors (in the future other
507
496
  # info may go back this way. This is the same channel that is
508
497
  # used to get stdin, see StdIn in pydev_console_utils)
509
- _PyDevFrontEndContainer._instance.ipython.hooks['editor'] = create_editor_hook(pydev_host, pydev_client_port)
498
+ _PyDevFrontEndContainer._instance.ipython.hooks["editor"] = create_editor_hook(pydev_host, pydev_client_port)
510
499
 
511
500
  # Note: setting the callback directly because setting it with set_hook would actually create a chain instead
512
501
  # of ovewriting at each new call).
513
502
  # _PyDevFrontEndContainer._instance.ipython.set_hook('editor', create_editor_hook(pydev_host, pydev_client_port))
514
503
 
515
504
  return _PyDevFrontEndContainer._instance
516
-
@@ -4,20 +4,20 @@ from _pydev_bundle._pydev_saved_modules import threading
4
4
  # circumstances).
5
5
  # It is required to debug threads started by start_new_thread in Python 3.4
6
6
  _temp = threading.Thread()
7
- if hasattr(_temp, '_is_stopped'): # Python 3.x has this
7
+ if hasattr(_temp, "_is_stopped"): # Python 3.12 and earlier has this
8
8
 
9
9
  def is_thread_alive(t):
10
10
  return not t._is_stopped
11
11
 
12
- elif hasattr(_temp, '_Thread__stopped'): # Python 2.x has this
12
+ elif hasattr(_temp, "_Thread__stopped"): # Python 2.x has this
13
13
 
14
14
  def is_thread_alive(t):
15
15
  return not t._Thread__stopped
16
16
 
17
17
  else:
18
-
19
18
  # Jython wraps a native java thread and thus only obeys the public API.
20
19
  def is_thread_alive(t):
21
20
  return t.is_alive()
22
21
 
22
+
23
23
  del _temp
@@ -1,20 +1,20 @@
1
1
  from _pydev_bundle._pydev_saved_modules import socket
2
2
  import sys
3
3
 
4
- IS_JYTHON = sys.platform.find('java') != -1
4
+ IS_JYTHON = sys.platform.find("java") != -1
5
5
 
6
6
  _cache = None
7
7
 
8
8
 
9
9
  def get_localhost():
10
- '''
10
+ """
11
11
  Should return 127.0.0.1 in ipv4 and ::1 in ipv6
12
12
 
13
13
  localhost is not used because on windows vista/windows 7, there can be issues where the resolving doesn't work
14
14
  properly and takes a lot of time (had this issue on the pyunit server).
15
15
 
16
16
  Using the IP directly solves the problem.
17
- '''
17
+ """
18
18
  # TODO: Needs better investigation!
19
19
 
20
20
  global _cache
@@ -22,14 +22,14 @@ def get_localhost():
22
22
  try:
23
23
  for addr_info in socket.getaddrinfo("localhost", 80, 0, 0, socket.SOL_TCP):
24
24
  config = addr_info[4]
25
- if config[0] == '127.0.0.1':
26
- _cache = '127.0.0.1'
25
+ if config[0] == "127.0.0.1":
26
+ _cache = "127.0.0.1"
27
27
  return _cache
28
28
  except:
29
29
  # Ok, some versions of Python don't have getaddrinfo or SOL_TCP... Just consider it 127.0.0.1 in this case.
30
- _cache = '127.0.0.1'
30
+ _cache = "127.0.0.1"
31
31
  else:
32
- _cache = 'localhost'
32
+ _cache = "localhost"
33
33
 
34
34
  return _cache
35
35
 
@@ -42,6 +42,7 @@ def get_socket_names(n_sockets, close=False):
42
42
  # Although the option which would be pure java *should* work for Jython, the socket being returned is still 0
43
43
  # (i.e.: it doesn't give the local port bound, only the original port, which was 0).
44
44
  from java.net import ServerSocket
45
+
45
46
  sock = ServerSocket(0)
46
47
  socket_name = get_localhost(), sock.getLocalPort()
47
48
  else:
@@ -63,5 +64,5 @@ def get_socket_name(close=False):
63
64
  return get_socket_names(1, close)[0]
64
65
 
65
66
 
66
- if __name__ == '__main__':
67
+ if __name__ == "__main__":
67
68
  print(get_socket_name())