PY3: dict_keys doesn't have a sort method
authorNoel Power <noel.power@suse.com>
Fri, 3 Aug 2018 13:42:33 +0000 (14:42 +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-combining.py

index 86cbc6d50f0c068586ec34d4e83a6dba89d561d9..6f23af8efb3b432ed067bd9290d97f71fcd41c8d 100644 (file)
@@ -79,8 +79,7 @@ combining_c.file.write(
 const struct translation _wind_combining_table[] = {
 ''')
 
-s = trans.keys()
-s.sort()
+s = sorted(trans)
 for k in s:
     v = trans[k]
     combining_c.file.write("{0x%x, %u}, /* %s */\n"