[h5py] 395/455: Fix __repr__ ugliness

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:54 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 6177f5895e93d6b5dc3b93f9c01a3dad95f04a31
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Mon Feb 8 02:56:46 2010 +0000

    Fix __repr__ ugliness
---
 h5py/highlevel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/h5py/highlevel.py b/h5py/highlevel.py
index d0df762..0b44376 100644
--- a/h5py/highlevel.py
+++ b/h5py/highlevel.py
@@ -625,7 +625,7 @@ class Group(HLObject, _DictCompat):
         if not self:
             return "<Closed HDF5 group>"
         namestr = '"%s"' % self.name if self.name is not None else "(anonymous)"
-        return '<HDF5 group "%s" (%d members)>' % \
+        return '<HDF5 group %s (%d members)>' % \
             (namestr, len(self))
 
 
@@ -1448,7 +1448,7 @@ class Datatype(HLObject):
         if not self.id:
             return "<Closed HDF5 named type>"
         namestr = '"%s"' % _extras.basename(self.name) if self.name is not None else "(anonymous)"
-        return '<HDF5 named type "%s" (dtype %s)>' % \
+        return '<HDF5 named type %s (dtype %s)>' % \
             (namestr, self.dtype.str)
 
 class SoftLink(object):

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