Skip to content

Commit 8b4ff53

Browse files
orenmnserhiy-storchaka
authored andcommitted
bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)
(forgot to remove it in #3219)
1 parent d87b105 commit 8b4ff53

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/_warnings.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
859859

860860
if (module_globals) {
861861
_Py_IDENTIFIER(get_source);
862-
_Py_IDENTIFIER(splitlines);
863862
PyObject *tmp;
864863
PyObject *loader;
865864
PyObject *module_name;
@@ -870,8 +869,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
870869

871870
if ((tmp = _PyUnicode_FromId(&PyId_get_source)) == NULL)
872871
return NULL;
873-
if ((tmp = _PyUnicode_FromId(&PyId_splitlines)) == NULL)
874-
return NULL;
875872

876873
/* Check/get the requisite pieces needed for the loader. */
877874
loader = PyDict_GetItemString(module_globals, "__loader__");

0 commit comments

Comments
 (0)