summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOren Milman <orenmn@gmail.com>2017-09-29 18:16:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-09-29 18:16:02 (GMT)
commit8b4ff53c440dfcde40fbeb02c5e666c85190528f (patch)
tree4d52c0fb3968b2e63150b5283ab8182b09f50634
parentd87b105ca794addf92addb28293c92a7ef4141e1 (diff)
downloadcpython-8b4ff53c440dfcde40fbeb02c5e666c85190528f.zip
cpython-8b4ff53c440dfcde40fbeb02c5e666c85190528f.tar.gz
cpython-8b4ff53c440dfcde40fbeb02c5e666c85190528f.tar.bz2
bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)
(forgot to remove it in #3219)
-rw-r--r--Python/_warnings.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 4ea9fce..a9f9641 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -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__");