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:
Serhiy Storchaka 2013-07-11 20:01:17 +03:00
parent e173d01231
commit e3ed4edb94
3 changed files with 8 additions and 3 deletions

View file

@ -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;
}