diff --git a/Modules/main.c b/Modules/main.c index 80c50b00830..056a6b6fe3f 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -370,9 +370,12 @@ Py_Main(int argc, char **argv) Py_Initialize(); if (Py_VerboseFlag || - (command == NULL && filename == NULL && stdin_is_interactive)) - fprintf(stderr, "Python %s on %s\n%s\n", - Py_GetVersion(), Py_GetPlatform(), COPYRIGHT); + (command == NULL && filename == NULL && stdin_is_interactive)) { + fprintf(stderr, "Python %s on %s\n", + Py_GetVersion(), Py_GetPlatform()); + if (!Py_NoSiteFlag) + fprintf(stderr, "%s\n", COPYRIGHT); + } if (command != NULL) { /* Backup _PyOS_optind and force sys.argv[0] = '-c' */