GH-84436: Skip refcounting for known immortals (GH-107605)
This commit is contained in:
@@ -105,7 +105,7 @@ _Py_device_encoding(int fd)
|
||||
#else
|
||||
if (_PyRuntime.preconfig.utf8_mode) {
|
||||
_Py_DECLARE_STR(utf_8, "utf-8");
|
||||
return Py_NewRef(&_Py_STR(utf_8));
|
||||
return &_Py_STR(utf_8);
|
||||
}
|
||||
return _Py_GetLocaleEncodingObject();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user