Skip to content
Closed
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
Address code review
  • Loading branch information
corona10 committed Jun 3, 2025
commit ff34816b5d47056a79276232529c8f1c1600527a
5 changes: 1 addition & 4 deletions Python/sysmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,10 +1107,7 @@ sys_set_object_tag_impl(PyObject *module, PyObject *object, const char *tag,
/*[clinic end generated code: output=b0fb5e9931feb4aa input=b64c9bd958c75f11]*/
{
assert(object != NULL);
if (strcmp(tag, "immortal") == 0) {
_Py_SetImmortal(object);
}
else if (strcmp(tag, "interned") == 0) {
if (strcmp(tag, "interned") == 0) {
_PyUnicode_InternMortal(_PyInterpreterState_GET(), &object);
}
else if(strcmp(tag, "deferred_refcount") == 0) {
Expand Down