[Numpy-svn] r5487 - trunk/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Mon Jul 21 07:36:19 CDT 2008


Author: alan.mcintyre
Date: 2008-07-21 07:36:17 -0500 (Mon, 21 Jul 2008)
New Revision: 5487

Modified:
   trunk/numpy/lib/function_base.py
Log:
Removed unused private function _asarray1d.


Modified: trunk/numpy/lib/function_base.py
===================================================================
--- trunk/numpy/lib/function_base.py	2008-07-21 06:55:48 UTC (rev 5486)
+++ trunk/numpy/lib/function_base.py	2008-07-21 12:36:17 UTC (rev 5487)
@@ -657,14 +657,6 @@
             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.
     """



More information about the Numpy-svn mailing list