[Python-checkins] bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)

Serhiy Storchaka webhook-mailer at python.org
Fri Sep 29 14:16:05 EDT 2017


https://github.com/python/cpython/commit/8b4ff53c440dfcde40fbeb02c5e666c85190528f
commit: 8b4ff53c440dfcde40fbeb02c5e666c85190528f
branch: master
author: Oren Milman <orenmn at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017年09月29日T21:16:02+03:00
summary:
bpo-31285: Remove splitlines identifier from Python/_warnings.c (#3803)
(forgot to remove it in #3219)
files:
M Python/_warnings.c
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 4ea9fce47cf..a9f96410c87 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__");


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /