Skip to content

Commit 910d3d7

Browse files
committed
Applied a patch from dkg@fifthhorseman.net: py3 compatibility: Use a list of dictionary keys
In python3, dict.keys() produces a dict_keys object, not a list. Since this code treats it as a list, we'll just be explicit about that. - Legacy-Id: 15893
1 parent c8f98e1 commit 910d3d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/utils/draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def outputkey(key, fields):
12781278
outfile.write("%s " % (fields["eventdate"]))
12791279
outfile.write("%s" % (os.path.basename(docname.strip())))
12801280

1281-
keys = fields.keys()
1281+
keys = list(fields.keys())
12821282
keys.sort()
12831283
for key in keys:
12841284
if fields[key] and not key in ["eventdate", ] and not key.startswith("_"):

0 commit comments

Comments
 (0)