summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-07-11 17:01:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-07-11 17:01:17 (GMT)
commite3ed4edb94cadaef747f6032c52cd903a169883e (patch)
tree10c8894b3db87f6104d0148e60c1f83e51dcff27 /Modules/main.c
parente173d0123171adc1b5145ef7613364e14ccbd945 (diff)
downloadcpython-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.c2
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;
}