summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-04 02:17:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-04 02:17:04 (GMT)
commit88f72ff95592730d3931d90028d0df934fa1a13d (patch)
tree736476b556061ffadbc468cf2b01a1a7e58838d9 /Lib/mhlib.py
parentb65c65b301203b2acb0b8e1b2f45d8b5079ce5fd (diff)
downloadcpython-88f72ff95592730d3931d90028d0df934fa1a13d.zip
cpython-88f72ff95592730d3931d90028d0df934fa1a13d.tar.gz
cpython-88f72ff95592730d3931d90028d0df934fa1a13d.tar.bz2
Replace .keys() with .iteritems(). Second review and test by Alex.
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r--Lib/mhlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index e5900ac..e463c03 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -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: