[h5py] 453/455: Disable DeprecationWarning for h5py 1.2 special types API
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:20:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit 1d5e36ed019ab2c04bbe07ff151eebc0dae3998f
Author: andrewcollette <andrew.collette at gmail.com>
Date: Mon Mar 15 03:19:11 2010 +0000
Disable DeprecationWarning for h5py 1.2 special types API
---
h5py/h5t.pyx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
index bd436ed..e9f437e 100644
--- a/h5py/h5t.pyx
+++ b/h5py/h5t.pyx
@@ -1559,7 +1559,7 @@ cpdef dtype py_new_enum(object dt_in, dict enum_vals):
Deprecated; use special_dtype() instead.
"""
- warnings.warn("Deprecated; use special_dtype(enum=(dtype, values)) instead", DeprecationWarning)
+ #warnings.warn("Deprecated; use special_dtype(enum=(dtype, values)) instead", DeprecationWarning)
return special_dtype(enum = (dt_in, enum_vals))
cpdef dict py_get_enum(object dt):
@@ -1567,7 +1567,7 @@ cpdef dict py_get_enum(object dt):
Deprecated; use check_dtype() instead.
"""
- warnings.warn("Deprecated; use check_dtype(enum=dtype) instead", DeprecationWarning)
+ #warnings.warn("Deprecated; use check_dtype(enum=dtype) instead", DeprecationWarning)
return check_dtype(enum=dt)
cpdef dtype py_new_vlen(object kind):
@@ -1575,7 +1575,7 @@ cpdef dtype py_new_vlen(object kind):
Deprecated; use special_dtype() instead.
"""
- warnings.warn("Deprecated; use special_dtype(vlen=basetype) instead", DeprecationWarning)
+ #warnings.warn("Deprecated; use special_dtype(vlen=basetype) instead", DeprecationWarning)
return special_dtype(vlen=kind)
cpdef object py_get_vlen(object dt_in):
@@ -1583,7 +1583,7 @@ cpdef object py_get_vlen(object dt_in):
Deprecated; use check_dtype() instead.
"""
- warnings.warn("Deprecated; use check_dtype(vlen=dtype) instead", DeprecationWarning)
+ #warnings.warn("Deprecated; use check_dtype(vlen=dtype) instead", DeprecationWarning)
return check_dtype(vlen=dt_in)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list