mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
[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 8b4ff53c44
)
This commit is contained in:
parent
a5610e0746
commit
66c2b9f13e
1 changed files with 0 additions and 3 deletions
|
@ -865,7 +865,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
|
||||
if (module_globals) {
|
||||
_Py_IDENTIFIER(get_source);
|
||||
_Py_IDENTIFIER(splitlines);
|
||||
PyObject *tmp;
|
||||
PyObject *loader;
|
||||
PyObject *module_name;
|
||||
|
@ -876,8 +875,6 @@ warnings_warn_explicit(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
|
||||
if ((tmp = _PyUnicode_FromId(&PyId_get_source)) == NULL)
|
||||
return NULL;
|
||||
if ((tmp = _PyUnicode_FromId(&PyId_splitlines)) == NULL)
|
||||
return NULL;
|
||||
|
||||
/* Check/get the requisite pieces needed for the loader. */
|
||||
loader = PyDict_GetItemString(module_globals, "__loader__");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue