173173if USE_CUSTOM_SYS_CURRENT_FRAMES_MAP :
174174 from _pydevd_bundle .pydevd_constants import constructed_tid_to_last_frame
175175
176- __version_info__ = (3 , 4 , 0 )
176+ __version_info__ = (3 , 4 , 1 )
177177__version_info_str__ = []
178178for v in __version_info__ :
179179 __version_info_str__ .append (str (v ))
@@ -255,7 +255,6 @@ def pydevd_breakpointhook(*args, **kwargs):
255255# PyDBCommandThread
256256# =======================================================================================================================
257257class PyDBCommandThread (PyDBDaemonThread ):
258-
259258 def __init__ (self , py_db ):
260259 PyDBDaemonThread .__init__ (self , py_db )
261260 self ._py_db_command_thread_event = py_db ._py_db_command_thread_event
@@ -300,7 +299,6 @@ def do_kill_pydev_thread(self):
300299# Non-daemon thread: guarantees that all data is written even if program is finished
301300# =======================================================================================================================
302301class CheckAliveThread (PyDBDaemonThread ):
303-
304302 def __init__ (self , py_db ):
305303 PyDBDaemonThread .__init__ (self , py_db )
306304 self .name = "pydevd.CheckAliveThread"
@@ -733,7 +731,6 @@ def __init__(self, set_as_global=True):
733731 # in the namespace (and thus can't be relied upon unless the reference was previously
734732 # saved).
735733 if IS_IRONPYTHON :
736-
737734 # A partial() cannot be used in IronPython for sys.settrace.
738735 def new_trace_dispatch (frame , event , arg ):
739736 return _trace_dispatch (self , frame , event , arg )
@@ -1013,7 +1010,7 @@ def _internal_get_file_type(self, abs_real_path_and_basename):
10131010 abs_path = abs_path [0 :i ]
10141011 i = max (abs_path .rfind ("/" ), abs_path .rfind ("\\ " ))
10151012 if i :
1016- dirname = abs_path [i + 1 :]
1013+ dirname = abs_path [i + 1 :]
10171014 # At this point, something as:
10181015 # "my_path\_pydev_runfiles\__init__.py"
10191016 # is now "_pydev_runfiles".
@@ -1531,7 +1528,6 @@ def add_dap_messages_listener(self, listener):
15311528 self ._dap_messages_listeners .append (listener )
15321529
15331530 class _WaitForConnectionThread (PyDBDaemonThread ):
1534-
15351531 def __init__ (self , py_db ):
15361532 PyDBDaemonThread .__init__ (self , py_db )
15371533 self ._server_socket = None
@@ -1585,7 +1581,7 @@ def get_internal_queue_and_event(self, thread_id) -> Tuple[_queue.Queue, Threadi
15851581 """returns internal command queue for a given thread.
15861582 if new queue is created, notify the RDB about it"""
15871583 if thread_id .startswith ("__frame__" ):
1588- thread_id = thread_id [thread_id .rfind ("|" ) + 1 :]
1584+ thread_id = thread_id [thread_id .rfind ("|" ) + 1 :]
15891585 return self ._cmd_queue [thread_id ], self ._thread_events [thread_id ]
15901586
15911587 def post_method_as_internal_command (self , thread_id , method , * args , ** kwargs ):
@@ -1762,7 +1758,7 @@ def set_enable_thread_notifications(self, enable):
17621758 # (so, clear the cache related to that).
17631759 self ._running_thread_ids = {}
17641760
1765- def process_internal_commands (self , process_thread_ids : Optional [tuple ]= None ):
1761+ def process_internal_commands (self , process_thread_ids : Optional [tuple ] = None ):
17661762 """
17671763 This function processes internal commands.
17681764 """
@@ -1921,10 +1917,10 @@ def set_suspend(
19211917 self ,
19221918 thread ,
19231919 stop_reason : int ,
1924- suspend_other_threads : bool = False ,
1920+ suspend_other_threads : bool = False ,
19251921 is_pause = False ,
1926- original_step_cmd : int = - 1 ,
1927- suspend_requested : bool = False ,
1922+ original_step_cmd : int = - 1 ,
1923+ suspend_requested : bool = False ,
19281924 ):
19291925 """
19301926 :param thread:
@@ -2735,7 +2731,6 @@ def wait_for_commands(self, globals):
27352731
27362732
27372733class IDAPMessagesListener (object ):
2738-
27392734 def before_send (self , message_as_dict ):
27402735 """
27412736 Called just before a message is sent to the IDE.
@@ -3221,7 +3216,6 @@ def stoptrace():
32213216
32223217
32233218class Dispatcher (object ):
3224-
32253219 def __init__ (self ):
32263220 self .port = None
32273221
@@ -3241,7 +3235,6 @@ def close(self):
32413235
32423236
32433237class DispatchReader (ReaderThread ):
3244-
32453238 def __init__ (self , dispatcher ):
32463239 self .dispatcher = dispatcher
32473240
@@ -3445,6 +3438,7 @@ def getpass(*args, **kwargs):
34453438
34463439 getpass_mod .getpass = getpass
34473440
3441+
34483442# Dispatch on_debugger_modules_loaded here, after all primary py_db modules are loaded
34493443
34503444
0 commit comments