Skip to content

Commit ff34816

Browse files
committed
Address code review
1 parent e7d06b6 commit ff34816

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Python/sysmodule.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,10 +1107,7 @@ sys_set_object_tag_impl(PyObject *module, PyObject *object, const char *tag,
11071107
/*[clinic end generated code: output=b0fb5e9931feb4aa input=b64c9bd958c75f11]*/
11081108
{
11091109
assert(object != NULL);
1110-
if (strcmp(tag, "immortal") == 0) {
1111-
_Py_SetImmortal(object);
1112-
}
1113-
else if (strcmp(tag, "interned") == 0) {
1110+
if (strcmp(tag, "interned") == 0) {
11141111
_PyUnicode_InternMortal(_PyInterpreterState_GET(), &object);
11151112
}
11161113
else if(strcmp(tag, "deferred_refcount") == 0) {

0 commit comments

Comments
 (0)