summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-12-14 04:05:55 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-12-14 04:05:55 (GMT)
commit0212c4dc6b061a49fd8bc8df8f1bdd8049c292ef (patch)
treeec2886f932193bb6d1452447900bd4638a1831cd
parent220ba72c20869975ee9e900f78c7a724db13a3ee (diff)
downloadcpython-0212c4dc6b061a49fd8bc8df8f1bdd8049c292ef.zip
cpython-0212c4dc6b061a49fd8bc8df8f1bdd8049c292ef.tar.gz
cpython-0212c4dc6b061a49fd8bc8df8f1bdd8049c292ef.tar.bz2
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.
-rw-r--r--Lib/subprocess.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index abf43e5..04cfb44 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)