Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 67193:b7be652daf6e
Add sys.flags.quiet attribute for the new -q option, as noted missing by Eric in #1772833.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Tue, 28 Dec 2010 18:30:18 +0000 |
| parents | ba709ad3ff4c |
| children | 912fd20de0e0 |
comparison
equal
deleted
inserted
replaced
| 67192:69460c805737 | 67193:b7be652daf6e |
|---|---|
| 1415 #ifdef RISCOS | 1415 #ifdef RISCOS |
| 1416 {"riscos_wimp", "???"}, | 1416 {"riscos_wimp", "???"}, |
| 1417 #endif | 1417 #endif |
| 1418 /* {"unbuffered", "-u"}, */ | 1418 /* {"unbuffered", "-u"}, */ |
| 1419 /* {"skip_first", "-x"}, */ | 1419 /* {"skip_first", "-x"}, */ |
| 1420 {"bytes_warning", "-b"}, | 1420 {"bytes_warning", "-b"}, |
| 1421 {"quiet", "-q"}, | |
| 1421 {0} | 1422 {0} |
| 1422 }; | 1423 }; |
| 1423 | 1424 |
| 1424 static PyStructSequence_Desc flags_desc = { | 1425 static PyStructSequence_Desc flags_desc = { |
| 1425 "sys.flags", /* name */ | 1426 "sys.flags", /* name */ |
| 1459 SetFlag(Py_RISCOSWimpFlag); | 1460 SetFlag(Py_RISCOSWimpFlag); |
| 1460 #endif | 1461 #endif |
| 1461 /* SetFlag(saw_unbuffered_flag); */ | 1462 /* SetFlag(saw_unbuffered_flag); */ |
| 1462 /* SetFlag(skipfirstline); */ | 1463 /* SetFlag(skipfirstline); */ |
| 1463 SetFlag(Py_BytesWarningFlag); | 1464 SetFlag(Py_BytesWarningFlag); |
| 1465 SetFlag(Py_QuietFlag); | |
| 1464 #undef SetFlag | 1466 #undef SetFlag |
| 1465 | 1467 |
| 1466 if (PyErr_Occurred()) { | 1468 if (PyErr_Occurred()) { |
| 1467 return NULL; | 1469 return NULL; |
| 1468 } | 1470 } |
