summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-07-21 12:36:17 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-07-21 12:36:17 +0000
commitb8ecdad75b831eec62fb02e76d80a45f7ec9aa58 (patch)
tree029fb55d953485d62cbffe1e846117f72d3a498f /numpy/lib/function_base.py
parent8e86b69357c931b9dc0544d0210f7b2a0720ef11 (diff)
downloadnumpy-b8ecdad75b831eec62fb02e76d80a45f7ec9aa58.tar.gz
Removed unused private function _asarray1d.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 2204f1863..f0b941872 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -657,14 +657,6 @@ def select(condlist, choicelist, default=0):
S = S*ones(asarray(pfac).shape, S.dtype)
return choose(S, tuple(choicelist))
-def _asarray1d(arr, copy=False):
- """Ensure 1D array for one array.
- """
- if copy:
- return asarray(arr).flatten()
- else:
- return asarray(arr).ravel()
-
def copy(a):
"""Return an array copy of the given object.
"""