From: Gregory P. Smith Date: Mon, 14 Dec 2015 04:05:55 +0000 (-0800) Subject: Re-fix issue #19284: Don't generate the no-op -R command line X-Git-Tag: v3.6.0a1~912^2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0212c4dc6b061a49fd8bc8df8f1bdd8049c292ef;p=python 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. --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index abf43e5586..04cfb44de3 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -512,14 +512,11 @@ def _args_from_interpreter_flags(): '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)