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.
1 parent 24b8881 commit e98922fCopy full SHA for e98922f
1 file changed
Modules/main.c
@@ -370,9 +370,12 @@ Py_Main(int argc, char **argv)
370
Py_Initialize();
371
372
if (Py_VerboseFlag ||
373
- (command == NULL && filename == NULL && stdin_is_interactive))
374
- fprintf(stderr, "Python %s on %s\n%s\n",
375
- Py_GetVersion(), Py_GetPlatform(), COPYRIGHT);
+ (command == NULL && filename == NULL && stdin_is_interactive)) {
+ fprintf(stderr, "Python %s on %s\n",
+ Py_GetVersion(), Py_GetPlatform());
376
+ if (!Py_NoSiteFlag)
377
+ fprintf(stderr, "%s\n", COPYRIGHT);
378
+ }
379
380
if (command != NULL) {
381
/* Backup _PyOS_optind and force sys.argv[0] = '-c' */
0 commit comments