PY3: dict has no iterkeys method
[amitay/samba.git] / 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: