Skip to content

Commit 4fde8de

Browse files
Fit lines to 80 columns
1 parent e9ac75b commit 4fde8de

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Modules/_testexternalinspection.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ search_section_in_file(
192192

193193
munmap(map, fs.st_size);
194194
if (close(fd) != 0) {
195-
// This might hide one of the above exceptions, maybe we should chain them?
195+
// This might hide one of the above exceptions, maybe we
196+
// should chain them?
196197
PyErr_SetFromErrno(PyExc_OSError);
197198
}
198199
return result;
@@ -265,7 +266,8 @@ search_map_for_section(pid_t pid, const char* secname, const char* substr) {
265266
address += size;
266267
}
267268

268-
PyErr_SetString(PyExc_RuntimeError, "mach_vm_region failed to find the section");
269+
PyErr_SetString(PyExc_RuntimeError,
270+
"mach_vm_region failed to find the section");
269271
return 0;
270272
}
271273

@@ -312,7 +314,8 @@ find_map_start_address(pid_t pid, char* result_filename, const char* map)
312314

313315
if (!match_found) {
314316
map_filename[0] = '\0';
315-
PyErr_Format(PyExc_RuntimeError, "Cannot find map start address for map: %s", map);
317+
PyErr_Format(PyExc_RuntimeError,
318+
"Cannot find map start address for map: %s", map);
316319
}
317320

318321
return result_address;
@@ -408,7 +411,8 @@ search_map_for_section(pid_t pid, const char* secname, const char* map)
408411
static uintptr_t
409412
search_map_for_section(pid_t pid, const char* secname, const char* map)
410413
{
411-
PyErr_SetString(PyExc_NotImplementedError, "Not supported on this platform");
414+
PyErr_SetString(PyExc_NotImplementedError,
415+
"Not supported on this platform");
412416
return 0;
413417
}
414418
#endif
@@ -427,7 +431,8 @@ get_py_runtime(pid_t pid)
427431
static uintptr_t
428432
get_async_debug(pid_t pid)
429433
{
430-
uintptr_t result = search_map_for_section(pid, "AsyncioDebug", "_asyncio.cpython");
434+
uintptr_t result = search_map_for_section(pid, "AsyncioDebug",
435+
"_asyncio.cpython");
431436
if (result == 0 && !PyErr_Occurred()) {
432437
PyErr_SetString(PyExc_RuntimeError, "Cannot find AsyncioDebug section");
433438
}

0 commit comments

Comments
 (0)