mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Issue #18338: python --version
now prints version string to stdout, and
not to stderr. Patch by Berker Peksag and Michael Dickens.
This commit is contained in:
parent
e173d01231
commit
e3ed4edb94
3 changed files with 8 additions and 3 deletions
|
@ -500,7 +500,7 @@ Py_Main(int argc, wchar_t **argv)
|
|||
return usage(0, argv[0]);
|
||||
|
||||
if (version) {
|
||||
fprintf(stderr, "Python %s\n", PY_VERSION);
|
||||
printf("Python %s\n", PY_VERSION);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue