summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-15 18:07:37 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-15 18:07:37 +0200
commit79f92e7144e57e1e3499cbfcca094636daf51396 (patch)
tree169342054616aad65e0cf2e0ffee1de2d845a19e
parent2db08e43d82c0a34e87d30290a8400d4f4317601 (diff)
datafile: do not explicitly raise StopIteration at generator end
Should not be done in python3.
-rw-r--r--datafile.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/datafile.py b/datafile.py
index 8a61c13..469e58e 100644
--- a/datafile.py
+++ b/datafile.py
@@ -73,7 +73,6 @@ class _DataRefinementLevel(object):
def __iter__(self):
for it, t in self._ds._df.itertimes[self.n]:
yield self._ds.slice(it, rl = self.n)
- raise StopIteration
#def _next(self):