From c6884138e4c1aec80e8f99ef0978b43919ae9d3a Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 3 Aug 2018 14:49:59 +0100 Subject: [PATCH] PY3: dict has no iterkeys method Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- source4/heimdal/lib/wind/gen-map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/heimdal/lib/wind/gen-map.py b/source4/heimdal/lib/wind/gen-map.py index d4f02af1f29..dbcc21581e6 100644 --- a/source4/heimdal/lib/wind/gen-map.py +++ b/source4/heimdal/lib/wind/gen-map.py @@ -51,7 +51,7 @@ if len(sys.argv) != 3: tables = rfc3454.read(sys.argv[1]) t2 = rfc4518.read() -for x in t2.iterkeys(): +for x in t2: tables[x] = t2[x] map_list = stringprep.get_maplist() @@ -88,7 +88,7 @@ const struct translation _wind_map_table[] = { trans=[] -for t in map_list.iterkeys(): +for t in map_list: for l in tables[t]: m = re.search('^ *([0-9A-F]+)-([0-9A-F]+); *([^;]+); *(.*) *$', l) if m: -- 2.34.1