mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Will backport to 2.2.
This commit is contained in:
parent
24b8881f61
commit
e98922fb80
1 changed files with 6 additions and 3 deletions
|
|
@ -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' */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue