summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-17 00:07:21 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-17 00:07:21 +0000
commit4593515985f1aa30cf07715ace5eeee6da848c97 (patch)
treeab13435f4bec383abc7c04ca7b0259b44dd2519d /numpy/lib/utils.py
parenta397b5545b1a20e1b0e39881eb8cf8d2dd26b793 (diff)
downloadnumpy-4593515985f1aa30cf07715ace5eeee6da848c97.tar.gz
Fixed up usage of dtype to be consistent with new dtype objects.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index a776c83b6..e9ff9e540 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -1,6 +1,6 @@
-from numpy.core.numerictypes import obj2dtype
+from numpy.core.numerictypes import obj2arrtype
-__all__ = ['issubclass_', 'get_numpy_include', 'issubdtype']
+__all__ = ['issubclass_', 'get_numpy_include', 'issubarrtype']
def issubclass_(arg1, arg2):
try:
@@ -8,8 +8,8 @@ def issubclass_(arg1, arg2):
except TypeError:
return False
-def issubdtype(arg1, arg2):
- return issubclass(obj2dtype(arg1), obj2dtype(arg2))
+def issubarrtype(arg1, arg2):
+ return issubclass(obj2arrtype(arg1), obj2arrtype(arg2))
def get_numpy_include():
"""Return the directory in the package that contains the numpy/*.h header