We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sys.flags.quiet
1 parent d515f7d commit 84c46dbCopy full SHA for 84c46db
Lib/asyncio/__main__.py
@@ -86,14 +86,15 @@ def run(self):
86
global return_code
87
88
try:
89
- banner = (
90
- f'asyncio REPL {sys.version} on {sys.platform}\n'
91
- f'Use "await" directly instead of "asyncio.run()".\n'
92
- f'Type "help", "copyright", "credits" or "license" '
93
- f'for more information.\n'
94
- )
95
-
96
- console.write(banner)
+ if not sys.flags.quiet:
+ banner = (
+ f'asyncio REPL {sys.version} on {sys.platform}\n'
+ f'Use "await" directly instead of "asyncio.run()".\n'
+ f'Type "help", "copyright", "credits" or "license" '
+ f'for more information.\n'
+ )
+
97
+ console.write(banner)
98
99
if startup_path := os.getenv("PYTHONSTARTUP"):
100
sys.audit("cpython.run_startup", startup_path)
0 commit comments