Commit 88f72ff9 authored by Raymond Hettinger's avatar Raymond Hettinger

Replace .keys() with .iteritems(). Second review and test by Alex.

parent b65c65b3
......@@ -314,9 +314,9 @@ class Folder:
"""Write the set of sequences back to the folder."""
fullname = self.getsequencesfilename()
f = None
for key in sequences.keys():
for key, seq in sequences.iteritems():
s = IntSet('', ' ')
s.fromlist(sequences[key])
s.fromlist(seq)
if not f: f = open(fullname, 'w')
f.write('%s: %s\n' % (key, s.tostring()))
if not f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment