]> granicus.if.org Git - python/commitdiff
Replace .keys() with .iteritems(). Second review and test by Alex.
authorRaymond Hettinger <python@rcn.com>
Tue, 4 Jun 2002 02:17:04 +0000 (02:17 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 4 Jun 2002 02:17:04 +0000 (02:17 +0000)
Lib/mhlib.py

index e5900acff9cec908ab7553269fed6f28b2ea4565..e463c036b3897046af9330eea16804707880bd08 100644 (file)
@@ -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: