diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-07-11 20:01:17 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-07-11 20:01:17 +0300 |
| commit | e3ed4edb94cadaef747f6032c52cd903a169883e (patch) | |
| tree | 10c8894b3db87f6104d0148e60c1f83e51dcff27 /Modules | |
| parent | e173d0123171adc1b5145ef7613364e14ccbd945 (diff) | |
| download | cpython-git-e3ed4edb94cadaef747f6032c52cd903a169883e.tar.gz | |
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')
| -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 af0d7f4064..0343ddab6e 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; } |
