summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-12-14 04:09:42 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-12-14 04:09:42 (GMT)
commit6edadfc9ca0934324e517fc9f9bdd902319825df (patch)
treede01df4779ae662327a0a60a8adf81cb1f730325 /Lib/subprocess.py
parente847d7170d3f41b1ec773ab203c11f1addd6d4ac (diff)
parent8c084eb77d69ec1527fad943a4031b1b29193e98 (diff)
downloadcpython-6edadfc9ca0934324e517fc9f9bdd902319825df.zip
cpython-6edadfc9ca0934324e517fc9f9bdd902319825df.tar.gz
cpython-6edadfc9ca0934324e517fc9f9bdd902319825df.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)