[h5py] 388/455: Remove dead code

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:53 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 dd48fe164a69d75a6ecde14698e0388425e30f69
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Mon Feb 8 00:19:25 2010 +0000

    Remove dead code
---
 h5py/highlevel.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/h5py/highlevel.py b/h5py/highlevel.py
index 49d5345..a21729f 100644
--- a/h5py/highlevel.py
+++ b/h5py/highlevel.py
@@ -130,10 +130,7 @@ class HLObject(object):
     @property
     def name(self):
         """Name of this object in the HDF5 file.  Not necessarily unique."""
-        name = h5i.get_name(self.id)
-        if name is None and config.API_18:
-            name = h5r.get_name(self.ref)
-        return name
+        return h5i.get_name(self.id)
 
     @cproperty('_attrs')
     def attrs(self):

-- 
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