diff options
author | Georg Brandl <georg@python.org> | 2010-12-28 18:30:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-28 18:30:18 (GMT) |
commit | 8aa7e999b5ab87cdbefe441649c223647875c110 (patch) | |
tree | 1fc0ca2cc25768d07c0ac241a053c2e07809a919 /Python/sysmodule.c | |
parent | 31e3b77fea0a1c4703bade2c68b1252505a77bc7 (diff) | |
download | cpython-8aa7e999b5ab87cdbefe441649c223647875c110.zip cpython-8aa7e999b5ab87cdbefe441649c223647875c110.tar.gz cpython-8aa7e999b5ab87cdbefe441649c223647875c110.tar.bz2 |
Add sys.flags.quiet attribute for the new -q option, as noted missing by Eric in #1772833.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 0a14f0e..730567e 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1417,7 +1417,8 @@ static PyStructSequence_Field flags_fields[] = { #endif /* {"unbuffered", "-u"}, */ /* {"skip_first", "-x"}, */ - {"bytes_warning", "-b"}, + {"bytes_warning", "-b"}, + {"quiet", "-q"}, {0} }; @@ -1461,6 +1462,7 @@ make_flags(void) /* SetFlag(saw_unbuffered_flag); */ /* SetFlag(skipfirstline); */ SetFlag(Py_BytesWarningFlag); + SetFlag(Py_QuietFlag); #undef SetFlag if (PyErr_Occurred()) { |