Skip to content

Commit

Permalink
Merge pull request #56 from zimoun/fix53
Browse files Browse the repository at this point in the history
fix #53 iteritems() -> items()
  • Loading branch information
andrenarchy committed Mar 21, 2016
2 parents 80d10bc + 2f49ef0 commit 28fbf92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion krypy/recycling/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def evaluate(_subset, _evaluations):
import operator
print('Timings for all successfully evaluated choices of '
'deflation vectors with corresponding Ritz values:')
for subset, time in sorted(overall_evaluations.iteritems(),
for subset, time in sorted(overall_evaluations.items(),
key=operator.itemgetter(1)):
print(' {0}s: '.format(time)
+ ', '.join([str(el)
Expand Down
2 changes: 1 addition & 1 deletion krypy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ def get_ops(self, ops):
'''Return timings for dictionary ops holding the operation names as
keys and the number of applications as values.'''
time = 0.
for op, count in ops.iteritems():
for op, count in ops.items():
time += self.get(op) * count
return time

Expand Down

0 comments on commit 28fbf92

Please sign in to comment.