Commit e98922fb authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614.

Will backport to 2.2.
parent 24b8881f
......@@ -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' */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment