Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r58320:09713cd66425
Date: 2012-10-21 17:40 +0200
http://bitbucket.org/pypy/pypy/changeset/09713cd66425/

Log:    Remove the line printing "Warning: pypy does not implement hash
        randomization". See http://bugs.python.org/issue14621 .

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
@@ -12,6 +12,7 @@
   -m mod         library module to be run as a script (terminates option list)
   -W arg         warning control (arg is action:message:category:module:lineno)
   -E             ignore environment variables (such as PYTHONPATH)
+  -R             ignored (see http://bugs.python.org/issue14621)
   --version      print the PyPy version
   --info         print translation information about this PyPy executable
 """
@@ -445,9 +446,11 @@
         (not options["ignore_environment"] and os.getenv('PYTHONINSPECT'))):
         options["inspect"] = 1
 
-    if (options["hash_randomization"] or os.getenv('PYTHONHASHSEED')):
-        print >> sys.stderr, (
-            "Warning: pypy does not implement hash randomization")
+##    We don't print the warning, because it offers no additional security
+##    in CPython either (http://bugs.python.org/issue14621)
+##    if (options["hash_randomization"] or os.getenv('PYTHONHASHSEED')):
+##        print >> sys.stderr, (
+##            "Warning: pypy does not implement hash randomization")
 
     if PYTHON26 and we_are_translated():
         flags = [options[flag] for flag in sys_flags]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to