From 910d3d7723d6bd74f8a331778aac7245eaea4935 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 14 Jan 2019 21:06:08 +0000 Subject: [PATCH] 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 --- ietf/utils/draft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/draft.py b/ietf/utils/draft.py index 33a576420..47fa1c3ed 100755 --- a/ietf/utils/draft.py +++ b/ietf/utils/draft.py @@ -1278,7 +1278,7 @@ def _output(docname, fields, outfile=sys.stdout): outfile.write("%s " % (fields["eventdate"])) outfile.write("%s" % (os.path.basename(docname.strip()))) - keys = fields.keys() + keys = list(fields.keys()) keys.sort() for key in keys: if fields[key] and not key in ["eventdate", ] and not key.startswith("_"):