Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88f72ff

Browse files
committed
Replace .keys() with .iteritems(). Second review and test by Alex.
1 parent b65c65b commit 88f72ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/mhlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ def putsequences(self, sequences):
314314
"""Write the set of sequences back to the folder."""
315315
fullname = self.getsequencesfilename()
316316
f = None
317-
for key in sequences.keys():
317+
for key, seq in sequences.iteritems():
318318
s = IntSet('', ' ')
319-
s.fromlist(sequences[key])
319+
s.fromlist(seq)
320320
if not f: f = open(fullname, 'w')
321321
f.write('%s: %s\n' % (key, s.tostring()))
322322
if not f:

0 commit comments

Comments
 (0)