Skip to content

Commit

Permalink
[python] Remove explicit visibility("default") on PyInit__message (#1…
Browse files Browse the repository at this point in the history
…6125)

This is unnecessary as PyMODINIT_FUNC already implies Py_EXPORTED_SYMBOL.

Closes #16125

COPYBARA_INTEGRATE_REVIEW=#16125 from goffrie:upb_export 5e7fa70
PiperOrigin-RevId: 700793109
  • Loading branch information
goffrie authored and copybara-github committed Nov 27, 2024
1 parent 9668016 commit 8ccca39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/protobuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ bool PyUpb_IndexToRange(PyObject* index, Py_ssize_t size, Py_ssize_t* i,
// Module Entry Point
// -----------------------------------------------------------------------------

__attribute__((visibility("default"))) PyMODINIT_FUNC PyInit__message(void) {
PyMODINIT_FUNC PyInit__message(void) {
PyObject* m = PyModule_Create(&module_def);
if (!m) return NULL;

Expand Down

0 comments on commit 8ccca39

Please sign in to comment.