[Python-checkins] cpython (3.4): Re-fix issue #19284: Don't generate the no-op -R command line

gregory.p.smith python-checkins at python.org
Sun Dec 13 23:15:36 EST 2015


https://hg.python.org/cpython/rev/d76b9c121e61
changeset:   99566:d76b9c121e61
branch:      3.4
user:        Gregory P. Smith <greg at krypto.org>
date:        Sun Dec 13 20:05:55 2015 -0800
summary:
  Re-fix issue #19284: Don't generate the no-op -R command line
parameter to "enable" the always on sys.flags.hash_randomization
in _args_from_interpreter_flags() used by multiprocessing and
some unittests.  This simplifies the code.

files:
  Lib/subprocess.py |  3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)


diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -512,14 +512,11 @@
         'verbose': 'v',
         'bytes_warning': 'b',
         'quiet': 'q',
-        'hash_randomization': 'R',
     }
     args = []
     for flag, opt in flag_opt_map.items():
         v = getattr(sys.flags, flag)
         if v > 0:
-            if flag == 'hash_randomization':
-                v = 1 # Handle specification of an exact seed
             args.append('-' + opt * v)
     for opt in sys.warnoptions:
         args.append('-W' + opt)

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list