summaryrefslogtreecommitdiff
path: root/numpy/lib/shape_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/shape_base.py')
-rw-r--r--numpy/lib/shape_base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py
index 3cb4dc19c..154faa1dd 100644
--- a/numpy/lib/shape_base.py
+++ b/numpy/lib/shape_base.py
@@ -644,8 +644,8 @@ def column_stack(tup):
"""
if not overrides.ARRAY_FUNCTION_ENABLED:
- # raise warning if necessary
- _arrays_for_stack_dispatcher(tup, stacklevel=2)
+ # reject non-sequences (and make tuple)
+ tup = _arrays_for_stack_dispatcher(tup)
arrays = []
for v in tup:
@@ -714,8 +714,8 @@ def dstack(tup):
"""
if not overrides.ARRAY_FUNCTION_ENABLED:
- # raise warning if necessary
- _arrays_for_stack_dispatcher(tup, stacklevel=2)
+ # reject non-sequences (and make tuple)
+ tup = _arrays_for_stack_dispatcher(tup)
arrs = atleast_3d(*tup)
if not isinstance(arrs, list):