]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
PY3: dict has no iterkeys method
authorNoel Power <noel.power@suse.com>
Fri, 3 Aug 2018 13:49:59 +0000 (14:49 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Sep 2018 04:16:19 +0000 (06:16 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/heimdal/lib/wind/gen-map.py

index d4f02af1f29d55250234b8d2a773a3024eb6347b..dbcc21581e6fc83b91a3592bb13ac04a30cdac60 100644 (file)
@@ -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: