[pypy-commit] pypy default: Issue #3050
arigo
pypy.commits at gmail.com
Tue Aug 6 08:18:18 EDT 2019
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r97068:6e42888fc78a
Date: 2019-08-06 14:17 +0200
http://bitbucket.org/pypy/pypy/changeset/6e42888fc78a/
Log: Issue #3050
subprocess: accept arguments that are not directly subscriptable
(like iterators)
diff --git a/lib-python/2.7/subprocess.py b/lib-python/2.7/subprocess.py
--- a/lib-python/2.7/subprocess.py
+++ b/lib-python/2.7/subprocess.py
@@ -337,7 +337,7 @@
# --- PyPy hack, see _pypy_install_libs_after_virtualenv() ---
# match arguments passed by different versions of virtualenv
- if args[1:] in (
+ if isinstance(args, (list, tuple)) and args[1:] in (
['-c', 'import sys; print(sys.prefix)'], # 1.6 10ba3f3c
['-c', "\nimport sys\nprefix = sys.prefix\n" # 1.7 0e9342ce
"if sys.version_info[0] == 3:\n"
More information about the pypy-commit
mailing list