Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 68950:c19752ea037f
Remove traces of division_warning left over from Python 2 (#10998)
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Sat, 26 Mar 2011 01:55:15 +0100 |
| parents | 4c1a15ebebe5 |
| children | 92212a7b85a3 |
comparison
equal
deleted
inserted
replaced
| 68934:03c7a83bbdd3 | 68950:c19752ea037f |
|---|---|
| 1310 | 1310 |
| 1311 static PyTypeObject FlagsType; | 1311 static PyTypeObject FlagsType; |
| 1312 | 1312 |
| 1313 static PyStructSequence_Field flags_fields[] = { | 1313 static PyStructSequence_Field flags_fields[] = { |
| 1314 {"debug", "-d"}, | 1314 {"debug", "-d"}, |
| 1315 {"division_warning", "-Q"}, | |
| 1316 {"inspect", "-i"}, | 1315 {"inspect", "-i"}, |
| 1317 {"interactive", "-i"}, | 1316 {"interactive", "-i"}, |
| 1318 {"optimize", "-O or -OO"}, | 1317 {"optimize", "-O or -OO"}, |
| 1319 {"dont_write_bytecode", "-B"}, | 1318 {"dont_write_bytecode", "-B"}, |
| 1320 {"no_user_site", "-s"}, | 1319 {"no_user_site", "-s"}, |
| 1334 static PyStructSequence_Desc flags_desc = { | 1333 static PyStructSequence_Desc flags_desc = { |
| 1335 "sys.flags", /* name */ | 1334 "sys.flags", /* name */ |
| 1336 flags__doc__, /* doc */ | 1335 flags__doc__, /* doc */ |
| 1337 flags_fields, /* fields */ | 1336 flags_fields, /* fields */ |
| 1338 #ifdef RISCOS | 1337 #ifdef RISCOS |
| 1339 13 | 1338 12 |
| 1340 #else | 1339 #else |
| 1341 12 | 1340 11 |
| 1342 #endif | 1341 #endif |
| 1343 }; | 1342 }; |
| 1344 | 1343 |
| 1345 static PyObject* | 1344 static PyObject* |
| 1346 make_flags(void) | 1345 make_flags(void) |
| 1354 | 1353 |
| 1355 #define SetFlag(flag) \ | 1354 #define SetFlag(flag) \ |
| 1356 PyStructSequence_SET_ITEM(seq, pos++, PyLong_FromLong(flag)) | 1355 PyStructSequence_SET_ITEM(seq, pos++, PyLong_FromLong(flag)) |
| 1357 | 1356 |
| 1358 SetFlag(Py_DebugFlag); | 1357 SetFlag(Py_DebugFlag); |
| 1359 SetFlag(Py_DivisionWarningFlag); | |
| 1360 SetFlag(Py_InspectFlag); | 1358 SetFlag(Py_InspectFlag); |
| 1361 SetFlag(Py_InteractiveFlag); | 1359 SetFlag(Py_InteractiveFlag); |
| 1362 SetFlag(Py_OptimizeFlag); | 1360 SetFlag(Py_OptimizeFlag); |
| 1363 SetFlag(Py_DontWriteBytecodeFlag); | 1361 SetFlag(Py_DontWriteBytecodeFlag); |
| 1364 SetFlag(Py_NoUserSiteDirectory); | 1362 SetFlag(Py_NoUserSiteDirectory); |
