https://github.com/python/cpython/commit/7726119651342bba224e5cc5869859ba7c0416e9
commit: 7726119651342bba224e5cc5869859ba7c0416e9
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-12-27T12:57:03Z
summary:

gh-138122: fix AC warnings in `Modules/_remote_debugging/module.c` (#143218)

files:
M Modules/_remote_debugging/module.c

diff --git a/Modules/_remote_debugging/module.c 
b/Modules/_remote_debugging/module.c
index 737787a331f948..26ebed13098f0e 100644
--- a/Modules/_remote_debugging/module.c
+++ b/Modules/_remote_debugging/module.c
@@ -947,6 +947,7 @@ 
_remote_debugging_RemoteUnwinder_get_stats_impl(RemoteUnwinderObject *self)
 }
 
 /*[clinic input]
+@permit_long_docstring_body
 @critical_section
 _remote_debugging.RemoteUnwinder.pause_threads
 
@@ -963,7 +964,7 @@ Returns True if threads were successfully paused, False if 
they were already pau
 
 static PyObject *
 _remote_debugging_RemoteUnwinder_pause_threads_impl(RemoteUnwinderObject *self)
-/*[clinic end generated code: output=aaf2bdc0a725750c input=78601c60dbc245fe]*/
+/*[clinic end generated code: output=aaf2bdc0a725750c input=d8a266f19a81c67e]*/
 {
 #ifdef Py_REMOTE_DEBUG_SUPPORTS_BLOCKING
     if (self->threads_stopped) {
@@ -985,6 +986,7 @@ 
_remote_debugging_RemoteUnwinder_pause_threads_impl(RemoteUnwinderObject *self)
 }
 
 /*[clinic input]
+@permit_long_docstring_body
 @critical_section
 _remote_debugging.RemoteUnwinder.resume_threads
 
@@ -997,7 +999,7 @@ Returns True if threads were successfully resumed, False if 
they were not paused
 
 static PyObject *
 _remote_debugging_RemoteUnwinder_resume_threads_impl(RemoteUnwinderObject 
*self)
-/*[clinic end generated code: output=8d6781ea37095536 input=67ca813bd804289e]*/
+/*[clinic end generated code: output=8d6781ea37095536 input=16baaaab007f4259]*/
 {
 #ifdef Py_REMOTE_DEBUG_SUPPORTS_BLOCKING
     if (!self->threads_stopped) {
@@ -1261,6 +1263,7 @@ class _remote_debugging.BinaryWriter "BinaryWriterObject 
*" "&PyBinaryWriter_Typ
 /*[clinic end generated code: output=da39a3ee5e6b4b0d input=e948838b90a2003c]*/
 
 /*[clinic input]
+@permit_long_docstring_body
 _remote_debugging.BinaryWriter.__init__
     filename: str
     sample_interval_us: unsigned_long_long
@@ -1285,7 +1288,7 @@ 
_remote_debugging_BinaryWriter___init___impl(BinaryWriterObject *self,
                                              unsigned long long 
sample_interval_us,
                                              unsigned long long start_time_us,
                                              int compression)
-/*[clinic end generated code: output=014c0306f1bacf4b input=57497fe3cb9214a6]*/
+/*[clinic end generated code: output=014c0306f1bacf4b input=3bdf01c1cc2f5a1d]*/
 {
     if (self->writer) {
         binary_writer_destroy(self->writer);
@@ -1300,6 +1303,7 @@ 
_remote_debugging_BinaryWriter___init___impl(BinaryWriterObject *self,
 }
 
 /*[clinic input]
+@permit_long_docstring_body
 _remote_debugging.BinaryWriter.write_sample
     stack_frames: object
     timestamp_us: unsigned_long_long
@@ -1315,7 +1319,7 @@ static PyObject *
 _remote_debugging_BinaryWriter_write_sample_impl(BinaryWriterObject *self,
                                                  PyObject *stack_frames,
                                                  unsigned long long 
timestamp_us)
-/*[clinic end generated code: output=24d5b86679b4128f input=dce3148417482624]*/
+/*[clinic end generated code: output=24d5b86679b4128f input=4e6d832d360bea46]*/
 {
     if (!self->writer) {
         PyErr_SetString(PyExc_ValueError, "Writer is closed");
@@ -1422,6 +1426,7 @@ 
_remote_debugging_BinaryWriter___exit___impl(BinaryWriterObject *self,
 }
 
 /*[clinic input]
+@permit_long_docstring_body
 _remote_debugging.BinaryWriter.get_stats
 
 Get encoding statistics for the writer.
@@ -1432,7 +1437,7 @@ record counts, frames written/saved, and compression 
ratio.
 
 static PyObject *
 _remote_debugging_BinaryWriter_get_stats_impl(BinaryWriterObject *self)
-/*[clinic end generated code: output=06522cd52544df89 input=82968491b53ad277]*/
+/*[clinic end generated code: output=06522cd52544df89 input=837c874ffdebd24c]*/
 {
     if (!self->writer) {
         PyErr_SetString(PyExc_ValueError, "Writer is closed");
@@ -1754,6 +1759,7 @@ _remote_debugging_zstd_available_impl(PyObject *module)
  * 
============================================================================ */
 
 /*[clinic input]
+@permit_long_docstring_body
 _remote_debugging.get_child_pids
 
     pid: int
@@ -1779,7 +1785,7 @@ Child processes may exit or new ones may be created after 
the list is returned.
 static PyObject *
 _remote_debugging_get_child_pids_impl(PyObject *module, int pid,
                                       int recursive)
-/*[clinic end generated code: output=1ae2289c6b953e4b input=3395cbe7f17066c9]*/
+/*[clinic end generated code: output=1ae2289c6b953e4b input=19d8d5d6e2b59e6e]*/
 {
     return enumerate_child_pids((pid_t)pid, recursive);
 }

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to