mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +07:00
PY-21352 Bug that None as the host argument value of pydevd.settrace() method has been passed as "None" string literal
This commit is contained in:
@@ -30,12 +30,13 @@ def _get_pydevd_args():
|
||||
return new_args
|
||||
|
||||
def _get_python_c_args(host, port, indC, args):
|
||||
host_literal = "'" + host + "'" if host is not None else 'None'
|
||||
return ("import sys; sys.path.append(r'%s'); import pydevd; "
|
||||
"pydevd.settrace(host='%s', port=%s, suspend=False, trace_only_current_thread=False, patch_multiprocessing=True); "
|
||||
"pydevd.settrace(host=%s, port=%s, suspend=False, trace_only_current_thread=False, patch_multiprocessing=True); "
|
||||
"sys.original_argv = %s; %s"
|
||||
) % (
|
||||
pydev_src_dir,
|
||||
host,
|
||||
host_literal,
|
||||
port,
|
||||
_get_pydevd_args(),
|
||||
args[indC + 1])
|
||||
|
||||
Reference in New Issue
Block a user