mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Replace .keys() with .iteritems(). Second review and test by Alex.
This commit is contained in:
parent
b65c65b301
commit
88f72ff955
1 changed files with 2 additions and 2 deletions
|
@ -314,9 +314,9 @@ class Folder:
|
||||||
"""Write the set of sequences back to the folder."""
|
"""Write the set of sequences back to the folder."""
|
||||||
fullname = self.getsequencesfilename()
|
fullname = self.getsequencesfilename()
|
||||||
f = None
|
f = None
|
||||||
for key in sequences.keys():
|
for key, seq in sequences.iteritems():
|
||||||
s = IntSet('', ' ')
|
s = IntSet('', ' ')
|
||||||
s.fromlist(sequences[key])
|
s.fromlist(seq)
|
||||||
if not f: f = open(fullname, 'w')
|
if not f: f = open(fullname, 'w')
|
||||||
f.write('%s: %s\n' % (key, s.tostring()))
|
f.write('%s: %s\n' % (key, s.tostring()))
|
||||||
if not f:
|
if not f:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue