diff options
author | Georg Brandl <georg@python.org> | 2010-12-28 18:30:18 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-28 18:30:18 +0000 |
commit | 37eff4f6fb0628592d5d39b6cec49ccd8ce4a333 (patch) | |
tree | 10018b3eccd4f65f60a14581c92b33fdf867b9a4 /Python/sysmodule.c | |
parent | 38bc20f7be91f3caa5ac08f8d0f5709f89294383 (diff) | |
download | cpython-37eff4f6fb0628592d5d39b6cec49ccd8ce4a333.tar.gz |
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 0a14f0eb36..730567eaf7 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()) { |