[h5py] 33/38: Fix remaining lint issues with Python 2
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:21:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository h5py.
commit 5b663c2353f9500f93c43f51d30fd675d8e43da5
Author: Andrew Collette <andrew.collette at gmail.com>
Date: Sat May 30 19:11:59 2015 -0600
Fix remaining lint issues with Python 2
---
h5py/_hl/dataset.py | 2 +-
h5py/_hl/dims.py | 8 ++++----
h5py/_hl/selections.py | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/h5py/_hl/dataset.py b/h5py/_hl/dataset.py
index d9304e7..cf0cca3 100644
--- a/h5py/_hl/dataset.py
+++ b/h5py/_hl/dataset.py
@@ -17,7 +17,7 @@ import posixpath as pp
import sys
import six
-from six.moves import xrange
+from six.moves import xrange # pylint: disable=redefined-builtin
import numpy
diff --git a/h5py/_hl/dims.py b/h5py/_hl/dims.py
index 91ad0b5..d5251cd 100644
--- a/h5py/_hl/dims.py
+++ b/h5py/_hl/dims.py
@@ -113,19 +113,19 @@ class DimensionProxy(base.CommonStateObject):
h5ds.iterate(self._id, self._dimension, scales.append, 0)
return [
- (self._d(h5ds.get_scale_name(id)), Dataset(id))
- for id in scales
+ (self._d(h5ds.get_scale_name(x)), Dataset(x))
+ for x in scales
]
def keys(self):
""" Get a list of names for the scales on this dimension. """
with phil:
- return [key for (key, val) in self.items()]
+ return [key for (key, _) in self.items()]
def values(self):
""" Get a list of Dataset for scales on this dimension. """
with phil:
- return [val for (key, val) in self.items()]
+ return [val for (_, val) in self.items()]
@with_phil
def __repr__(self):
diff --git a/h5py/_hl/selections.py b/h5py/_hl/selections.py
index 95fe251..614b236 100644
--- a/h5py/_hl/selections.py
+++ b/h5py/_hl/selections.py
@@ -17,7 +17,7 @@
from __future__ import absolute_import
import six
-from six.moves import xrange
+from six.moves import xrange # pylint: disable=redefined-builtin
import numpy as np
--
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