PY3: dict has no iterkeys method
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from Samba commit c6884138e4c1aec80e8f99ef0978b43919ae9d3a)
This commit is contained in:

committed by
Nico Williams

parent
de4fbc9514
commit
f7c2860a36
@@ -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:
|
||||
|
Reference in New Issue
Block a user