Skip to content

Commit 66c2b9f

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
[3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) (#3829)
(forgot to remove it in GH-3219) (cherry picked from commit 8b4ff53)
1 parent a5610e0 commit 66c2b9f

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
@@ -865,7 +865,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
865865

866866
if (module_globals) {
867867
_Py_IDENTIFIER(get_source);
868-
_Py_IDENTIFIER(splitlines);
869868
PyObject *tmp;
870869
PyObject *loader;
871870
PyObject *module_name;
@@ -876,8 +875,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
876875

877876
if ((tmp = _PyUnicode_FromId(&PyId_get_source)) == NULL)
878877
return NULL;
879-
if ((tmp = _PyUnicode_FromId(&PyId_splitlines)) == NULL)
880-
return NULL;
881878

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

0 commit comments

Comments
 (0)