]> granicus.if.org Git - python/commitdiff
[3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Sep 2017 19:26:45 +0000 (12:26 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 29 Sep 2017 19:26:45 +0000 (22:26 +0300)
(forgot to remove it in GH-3219)
(cherry picked from commit 8b4ff53c440dfcde40fbeb02c5e666c85190528f)

Python/_warnings.c

index ef6ed00591cc53ef0a3d38e14011f74f77bd512d..0077b9b1c3d0c4bed8adfa16685642a80b050d33 100644 (file)
@@ -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__");