[Python-checkins] [3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) (#3829)
Serhiy Storchaka
webhook-mailer at python.org
Fri Sep 29 15:26:48 EDT 2017
https://github.com/python/cpython/commit/66c2b9f13ef2197a5212fd58372173124df76467
commit: 66c2b9f13ef2197a5212fd58372173124df76467
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017-09-29T22:26:45+03:00
summary:
[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 8b4ff53c440dfcde40fbeb02c5e666c85190528f)
files:
M Python/_warnings.c
diff --git a/Python/_warnings.c b/Python/_warnings.c
index ef6ed00591c..0077b9b1c3d 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -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__");
More information about the Python-checkins
mailing list