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