Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
--- a/Python/sysmodule.c Tue Dec 28 17:12:43 2010 +0000 +++ b/Python/sysmodule.c Tue Dec 28 18:30:18 2010 +0000 @@ -1417,7 +1417,8 @@ #endif /* {"unbuffered", "-u"}, */ /* {"skip_first", "-x"}, */ - {"bytes_warning", "-b"}, + {"bytes_warning", "-b"}, + {"quiet", "-q"}, {0} }; @@ -1461,6 +1462,7 @@ /* SetFlag(saw_unbuffered_flag); */ /* SetFlag(skipfirstline); */ SetFlag(Py_BytesWarningFlag); + SetFlag(Py_QuietFlag); #undef SetFlag if (PyErr_Occurred()) {
