|
37 | 37 |
|
38 | 38 | _Py_IDENTIFIER(builtins);
|
39 | 39 | _Py_IDENTIFIER(excepthook);
|
| 40 | +_Py_IDENTIFIER(flush); |
40 | 41 | _Py_IDENTIFIER(last_traceback);
|
41 | 42 | _Py_IDENTIFIER(last_type);
|
42 | 43 | _Py_IDENTIFIER(last_value);
|
| 44 | +_Py_IDENTIFIER(name); |
43 | 45 | _Py_IDENTIFIER(ps1);
|
44 | 46 | _Py_IDENTIFIER(ps2);
|
45 | 47 | _Py_IDENTIFIER(stdin);
|
@@ -215,7 +217,6 @@ get_codec_name(const char *encoding)
|
215 | 217 | {
|
216 | 218 | char *name_utf8, *name_str;
|
217 | 219 | PyObject *codec, *name = NULL;
|
218 |
| - _Py_IDENTIFIER(name); |
219 | 220 |
|
220 | 221 | codec = _PyCodec_Lookup(encoding);
|
221 | 222 | if (!codec)
|
@@ -512,7 +513,6 @@ flush_std_files(void)
|
512 | 513 | PyObject *fout = _PySys_GetObjectId(&PyId_stdout);
|
513 | 514 | PyObject *ferr = _PySys_GetObjectId(&PyId_stderr);
|
514 | 515 | PyObject *tmp;
|
515 |
| - _Py_IDENTIFIER(flush); |
516 | 516 |
|
517 | 517 | if (fout != NULL && fout != Py_None && !file_is_closed(fout)) {
|
518 | 518 | tmp = _PyObject_CallMethodId(fout, &PyId_flush, "");
|
@@ -1009,7 +1009,6 @@ create_stdio(PyObject* io,
|
1009 | 1009 | _Py_IDENTIFIER(open);
|
1010 | 1010 | _Py_IDENTIFIER(isatty);
|
1011 | 1011 | _Py_IDENTIFIER(TextIOWrapper);
|
1012 |
| - _Py_IDENTIFIER(name); |
1013 | 1012 | _Py_IDENTIFIER(mode);
|
1014 | 1013 |
|
1015 | 1014 | /* stdin is always opened in buffered mode, first because it shouldn't
|
@@ -2130,7 +2129,6 @@ flush_io(void)
|
2130 | 2129 | {
|
2131 | 2130 | PyObject *f, *r;
|
2132 | 2131 | PyObject *type, *value, *traceback;
|
2133 |
| - _Py_IDENTIFIER(flush); |
2134 | 2132 |
|
2135 | 2133 | /* Save the current exception */
|
2136 | 2134 | PyErr_Fetch(&type, &value, &traceback);
|
|
0 commit comments