]> granicus.if.org Git - python/commitdiff
bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)
authorOren Milman <orenmn@gmail.com>
Fri, 29 Sep 2017 18:16:02 +0000 (21:16 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 29 Sep 2017 18:16:02 +0000 (21:16 +0300)
(forgot to remove it in #3219)

Python/_warnings.c

index 4ea9fce47cf020490632e2edd6eeed354370f737..a9f96410c8798633cb9d890dc413f75f1c7d18c8 100644 (file)
@@ -859,7 +859,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;
@@ -870,8 +869,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__");