https://github.com/python/cpython/commit/ce31ae5209c976d28d1c21fcbb06c0ae5e50a896 commit: ce31ae5209c976d28d1c21fcbb06c0ae5e50a896 branch: main author: Jeroen Bogers <11465689+jbog...@users.noreply.github.com> committer: sobolevn <m...@sobolevn.me> date: 2025-04-18T22:59:37+03:00 summary:
gh-129719: Restore missing `socket.CAN_RAW_ERR_FILTER` on Linux (#129721) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensity...@gmail.com> files: A Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst M Doc/library/socket.rst M Modules/socketmodule.c diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 6b666753ceb935..2b1fae57c668de 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -498,6 +498,9 @@ Constants .. versionchanged:: 3.11 NetBSD support was added. + .. versionchanged:: next + Restored missing ``CAN_RAW_ERR_FILTER`` on Linux. + .. data:: CAN_BCM CAN_BCM_* diff --git a/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst b/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst new file mode 100644 index 00000000000000..5e7a3e2f589a76 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-02-06-11-23-51.gh-issue-129719.Of6rvb.rst @@ -0,0 +1 @@ +Fix missing :data:`!socket.CAN_RAW_ERR_FILTER` constant in the socket module on Linux systems. It was missing since Python 3.11. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2326620dcff84f..f55a9583b8586a 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -8332,7 +8332,7 @@ socket_exec(PyObject *m) #endif #if defined(HAVE_LINUX_CAN_RAW_H) || defined(HAVE_NETCAN_CAN_H) ADD_INT_MACRO(m, CAN_RAW_FILTER); -#ifdef CAN_RAW_ERR_FILTER +#ifdef HAVE_LINUX_CAN_RAW_H ADD_INT_MACRO(m, CAN_RAW_ERR_FILTER); #endif ADD_INT_MACRO(m, CAN_RAW_LOOPBACK); _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com