summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-09-29 19:26:45 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-09-29 19:26:45 (GMT)
commit66c2b9f13ef2197a5212fd58372173124df76467 (patch)
tree8f52645200d943b1ff5cadeacd50e63a06c99da7 /Python
parenta5610e07460a8df4b0923a32d37234cd535ec952 (diff)
downloadcpython-66c2b9f13ef2197a5212fd58372173124df76467.zip
cpython-66c2b9f13ef2197a5212fd58372173124df76467.tar.gz
cpython-66c2b9f13ef2197a5212fd58372173124df76467.tar.bz2
[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)
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index ef6ed00..0077b9b 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__");