mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Remove traces of division_warning left over from Python 2 (#10998)
This commit is contained in:
parent
79fe2a3462
commit
be3bd57ba2
9 changed files with 10 additions and 29 deletions
|
@ -1312,7 +1312,6 @@ static PyTypeObject FlagsType;
|
|||
|
||||
static PyStructSequence_Field flags_fields[] = {
|
||||
{"debug", "-d"},
|
||||
{"division_warning", "-Q"},
|
||||
{"inspect", "-i"},
|
||||
{"interactive", "-i"},
|
||||
{"optimize", "-O or -OO"},
|
||||
|
@ -1336,9 +1335,9 @@ static PyStructSequence_Desc flags_desc = {
|
|||
flags__doc__, /* doc */
|
||||
flags_fields, /* fields */
|
||||
#ifdef RISCOS
|
||||
13
|
||||
#else
|
||||
12
|
||||
#else
|
||||
11
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -1356,7 +1355,6 @@ make_flags(void)
|
|||
PyStructSequence_SET_ITEM(seq, pos++, PyLong_FromLong(flag))
|
||||
|
||||
SetFlag(Py_DebugFlag);
|
||||
SetFlag(Py_DivisionWarningFlag);
|
||||
SetFlag(Py_InspectFlag);
|
||||
SetFlag(Py_InteractiveFlag);
|
||||
SetFlag(Py_OptimizeFlag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue