Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ahkab/ahkab into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ggventurini committed Apr 24, 2015
2 parents 56e27b6 + c3ec64c commit 2a79e5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ahkab/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,12 @@ def __iter__(self):
self.iter_index = -1
return self

def __next__(self):
# redefine this or the superclass method will be used on
# PY3, calling the superclass' next() and not *our* next
# method below.
return self.next()

def next(self):
if self.iter_index == len(self.variables)-1:
self.iter_index = 0
Expand Down

0 comments on commit 2a79e5a

Please sign in to comment.