summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-12-14 04:15:26 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-12-14 04:15:26 (GMT)
commitfcbdf9906ba1ee0fcb53ff1a8afaaa933a92a56f (patch)
tree140b6f95690cca9a0d7d4787921d93f99e2d2fd6 /Lib/subprocess.py
parent86d322f0204797b0a2fe46e33bce240335270c6f (diff)
parent6edadfc9ca0934324e517fc9f9bdd902319825df (diff)
downloadcpython-fcbdf9906ba1ee0fcb53ff1a8afaaa933a92a56f.zip
cpython-fcbdf9906ba1ee0fcb53ff1a8afaaa933a92a56f.tar.gz
cpython-fcbdf9906ba1ee0fcb53ff1a8afaaa933a92a56f.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. * assert_python_ok docstring typo fix. * Fix test_cmd_line not to fail if PYTHONHASHSEED is set to a fixed seed.
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index bbf50ce..d1324b8 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -535,14 +535,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)