Skip to content

Commit 3f80165

Browse files
authored
GH-91048: Minor fixes for _remotedebugging & rename to _remote_debugging (#133398)
1 parent 483d130 commit 3f80165

14 files changed

+48
-67
lines changed

Lib/asyncio/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from itertools import count
66
from enum import Enum
77
import sys
8-
from _remotedebugging import get_all_awaited_by
8+
from _remote_debugging import get_all_awaited_by
99

1010

1111
class NodeType(Enum):

Lib/test/test_external_inspection.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
PROCESS_VM_READV_SUPPORTED = False
1616

1717
try:
18-
from _remotedebugging import PROCESS_VM_READV_SUPPORTED
19-
from _remotedebugging import get_stack_trace
20-
from _remotedebugging import get_async_stack_trace
21-
from _remotedebugging import get_all_awaited_by
18+
from _remote_debugging import PROCESS_VM_READV_SUPPORTED
19+
from _remote_debugging import get_stack_trace
20+
from _remote_debugging import get_async_stack_trace
21+
from _remote_debugging import get_all_awaited_by
2222
except ImportError:
23-
raise unittest.SkipTest("Test only runs when _remotedebuggingmodule is available")
24-
23+
raise unittest.SkipTest("Test only runs when _remote_debugging is available")
2524

2625
def _make_test_script(script_dir, script_basename, source):
2726
to_return = make_script(script_dir, script_basename, source)

Lib/test/test_sys.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ def _supports_remote_attaching():
19601960
PROCESS_VM_READV_SUPPORTED = False
19611961

19621962
try:
1963-
from _remotedebuggingmodule import PROCESS_VM_READV_SUPPORTED
1963+
from _remote_debugging import PROCESS_VM_READV_SUPPORTED
19641964
except ImportError:
19651965
pass
19661966

Modules/Setup

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ PYTHONPATH=$(COREPYTHONPATH)
284284

285285
#*shared*
286286
#_ctypes_test _ctypes/_ctypes_test.c
287+
#_remote_debugging _remote_debugging_module.c
287288
#_testcapi _testcapimodule.c
288289
#_testimportmultiple _testimportmultiple.c
289290
#_testmultiphase _testmultiphase.c
290-
#_remotedebugging _remotedebuggingmodule.c
291291
#_testsinglephase _testsinglephase.c
292292

293293
# ---

Modules/Setup.stdlib.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
# Modules that should always be present (POSIX and Windows):
3434
@MODULE_ARRAY_TRUE@array arraymodule.c
3535
@MODULE__ASYNCIO_TRUE@_asyncio _asynciomodule.c
36-
@MODULE__REMOTEDEBUGGING_TRUE@_remotedebugging _remotedebuggingmodule.c
3736
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
3837
@MODULE__CSV_TRUE@_csv _csv.c
3938
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
@@ -42,6 +41,7 @@
4241
@MODULE__PICKLE_TRUE@_pickle _pickle.c
4342
@MODULE__QUEUE_TRUE@_queue _queuemodule.c
4443
@MODULE__RANDOM_TRUE@_random _randommodule.c
44+
@MODULE__REMOTE_DEBUGGING_TRUE@_remote_debugging _remote_debugging_module.c
4545
@MODULE__STRUCT_TRUE@_struct _struct.c
4646

4747
# build supports subinterpreters

Modules/_remotedebuggingmodule.c renamed to Modules/_remote_debugging_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1775,13 +1775,13 @@ static PyMethodDef methods[] = {
17751775

17761776
static struct PyModuleDef module = {
17771777
.m_base = PyModuleDef_HEAD_INIT,
1778-
.m_name = "_remotedebugging",
1778+
.m_name = "_remote_debugging",
17791779
.m_size = -1,
17801780
.m_methods = methods,
17811781
};
17821782

17831783
PyMODINIT_FUNC
1784-
PyInit__remotedebugging(void)
1784+
PyInit__remote_debugging(void)
17851785
{
17861786
PyObject* mod = PyModule_Create(&module);
17871787
if (mod == NULL) {

PCbuild/_remotedebugging.vcxproj renamed to PCbuild/_remote_debugging.vcxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</ItemGroup>
6969
<PropertyGroup Label="Globals">
7070
<ProjectGuid>{4D7C112F-3083-4D9E-9754-9341C14D9B39}</ProjectGuid>
71-
<RootNamespace>_remotedebugging</RootNamespace>
71+
<RootNamespace>_remote_debugging</RootNamespace>
7272
<Keyword>Win32Proj</Keyword>
7373
<SupportPGO>false</SupportPGO>
7474
</PropertyGroup>
@@ -93,7 +93,7 @@
9393
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
9494
</PropertyGroup>
9595
<ItemGroup>
96-
<ClCompile Include="..\Modules\_remotedebuggingmodule.c" />
96+
<ClCompile Include="..\Modules\_remote_debugging_module.c" />
9797
</ItemGroup>
9898
<ItemGroup>
9999
<ResourceCompile Include="..\PC\python_nt.rc" />

PCbuild/_remotedebugging.vcxproj.filters renamed to PCbuild/_remote_debugging.vcxproj.filters

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</Filter>
1010
</ItemGroup>
1111
<ItemGroup>
12-
<ClCompile Include="..\Modules\_remotedebuggingmodule.c" />
12+
<ClCompile Include="..\Modules\_remote_debugging_module.c" />
1313
</ItemGroup>
1414
<ItemGroup>
1515
<ResourceCompile Include="..\PC\python_nt.rc">

PCbuild/pcbuild.proj

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<!-- pyshellext.dll -->
6767
<Projects Include="pyshellext.vcxproj" />
6868
<!-- Extension modules -->
69-
<ExtensionModules Include="_asyncio;_remotedebugging;_zoneinfo;_decimal;_elementtree;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound;_uuid;_wmi" />
69+
<ExtensionModules Include="_asyncio;_decimal;_elementtree;_multiprocessing;_overlapped;pyexpat;_queue;_remote_debugging;select;unicodedata;winsound;_uuid;_wmi;_zoneinfo" />
7070
<ExtensionModules Include="_ctypes" Condition="$(IncludeCTypes)" />
7171
<!-- Extension modules that require external sources -->
7272
<ExternalModules Include="_bz2;_lzma;_sqlite3" />

PCbuild/pcbuild.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_testlimitedcapi", "_testli
163163
EndProject
164164
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib-ng", "zlib-ng.vcxproj", "{FB91C8B2-6FBC-3A01-B644-1637111F902D}"
165165
EndProject
166-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_remotedebugging", "_remotedebugging.vcxproj", "{4D7C112F-3083-4D9E-9754-9341C14D9B39}"
166+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_remote_debugging", "_remote_debugging.vcxproj", "{4D7C112F-3083-4D9E-9754-9341C14D9B39}"
167167
EndProject
168168
Global
169169
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Python/stdlib_module_names.h

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/build/generate_stdlib_module_names.py

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
'_testlimitedcapi',
3535
'_testmultiphase',
3636
'_testsinglephase',
37-
'_remotedebugging',
3837
'_xxtestfuzz',
3938
'idlelib.idle_test',
4039
'test',

configure

+29-47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -7755,7 +7755,7 @@ AS_CASE([$ac_sys_system],
77557755
dnl (see Modules/Setup.stdlib.in).
77567756
PY_STDLIB_MOD_SET_NA(
77577757
[_ctypes_test],
7758-
[_remotedebugging],
7758+
[_remote_debugging],
77597759
[_testimportmultiple],
77607760
[_testmultiphase],
77617761
[_testsinglephase],
@@ -7849,6 +7849,7 @@ PY_STDLIB_MOD_SIMPLE([_pickle])
78497849
PY_STDLIB_MOD_SIMPLE([_posixsubprocess])
78507850
PY_STDLIB_MOD_SIMPLE([_queue])
78517851
PY_STDLIB_MOD_SIMPLE([_random])
7852+
PY_STDLIB_MOD_SIMPLE([_remote_debugging])
78527853
PY_STDLIB_MOD_SIMPLE([select])
78537854
PY_STDLIB_MOD_SIMPLE([_struct])
78547855
PY_STDLIB_MOD_SIMPLE([_types])
@@ -8122,7 +8123,6 @@ PY_STDLIB_MOD([_testbuffer], [test "$TEST_MODULES" = yes])
81228123
PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
81238124
PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
81248125
PY_STDLIB_MOD([_testsinglephase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
8125-
PY_STDLIB_MOD([_remotedebugging], [test "$TEST_MODULES" = yes])
81268126
PY_STDLIB_MOD([xxsubtype], [test "$TEST_MODULES" = yes])
81278127
PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
81288128
PY_STDLIB_MOD([_ctypes_test],

0 commit comments

Comments
 (0)