[hdf-compass] 84/295: py3k: Use new-style exception handling.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.

commit 4967acc38c53e16e57b5390217ea3e121d1dc291
Author: Elliott Sales de Andrade <quantum.analyst at gmail.com>
Date:   Tue Jul 21 02:44:32 2015 -0400

    py3k: Use new-style exception handling.
---
 filesystem_model/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filesystem_model/__init__.py b/filesystem_model/__init__.py
index bf93465..8ff5a31 100644
--- a/filesystem_model/__init__.py
+++ b/filesystem_model/__init__.py
@@ -167,7 +167,7 @@ class File(compass_model.Array):
         try:
             with open(self.key, 'rb') as f:
                 data = np.fromstring(f.read(), dtype='u1')
-        except OSError, IOError:
+        except (OSError, IOError):
             data = np.zeros((len(self),), dtype='u1')
 
         return data[args]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git



More information about the debian-science-commits mailing list