diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-08-04 23:24:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 23:24:50 (GMT) |
commit | 05a824f294f1409f33e32f1799d5b413dcf24445 (patch) | |
tree | 173417047763313af6cc1a3c4c54f1d510d28d62 /Python/fileutils.c | |
parent | ec0a0d2bd9faa247d5b3208a8138e4399b2da890 (diff) | |
download | cpython-05a824f294f1409f33e32f1799d5b413dcf24445.zip cpython-05a824f294f1409f33e32f1799d5b413dcf24445.tar.gz cpython-05a824f294f1409f33e32f1799d5b413dcf24445.tar.bz2 |
GH-84436: Skip refcounting for known immortals (GH-107605)
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r-- | Python/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index f262c3e..19b23f6 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -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 |