Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify call
  • Loading branch information
picnixz committed Dec 11, 2024
commit d4dc9a6814e3006c6e7a6d59e9a6c4e33e8398f7
2 changes: 1 addition & 1 deletion Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2753,7 +2753,7 @@ unicode_error_set_reason_impl(PyObject *self, const char *reason)
// TODO(picnixz): do an assert-only type-check when gh-127694 is merged
// (the caller function must do an eager type-check)
PyUnicodeErrorObject *exc = (PyUnicodeErrorObject *)self;
Py_XSETREF(*&exc->reason, value);
Py_XSETREF(exc->reason, value);
return 0;
}

Expand Down