[pypy-commit] pypy default: Print this to stderr, like CPython.

arigo noreply at buildbot.pypy.org
Sat Oct 8 17:06:07 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r47879:3fc8df6a35c0
Date: 2011-10-08 17:05 +0200
http://bitbucket.org/pypy/pypy/changeset/3fc8df6a35c0/

Log:	Print this to stderr, like CPython.

diff --git a/pypy/translator/goal/app_main.py b/pypy/translator/goal/app_main.py
--- a/pypy/translator/goal/app_main.py
+++ b/pypy/translator/goal/app_main.py
@@ -144,7 +144,7 @@
     print '  --jit off                  turn off the JIT'
 
 def print_version(*args):
-    print "Python", sys.version
+    print >> sys.stderr, "Python", sys.version
     raise SystemExit
 
 def set_jit_option(options, jitparam, *args):


More information about the pypy-commit mailing list