diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-07-11 17:01:17 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-07-11 17:01:17 (GMT) |
commit | e3ed4edb94cadaef747f6032c52cd903a169883e (patch) | |
tree | 10c8894b3db87f6104d0148e60c1f83e51dcff27 /Modules/main.c | |
parent | e173d0123171adc1b5145ef7613364e14ccbd945 (diff) | |
download | cpython-e3ed4edb94cadaef747f6032c52cd903a169883e.zip cpython-e3ed4edb94cadaef747f6032c52cd903a169883e.tar.gz cpython-e3ed4edb94cadaef747f6032c52cd903a169883e.tar.bz2 |
Issue #18338: `python --version` now prints version string to stdout, and
not to stderr. Patch by Berker Peksag and Michael Dickens.
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index af0d7f4..0343dda 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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; } |