Bulk: enclose .keys() method with list where list (from python2) expected
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from Samba commit 521bc6056edc5252f2256664f4eacba13a3749e3)
This commit is contained in:

committed by
Nico Williams

parent
06143cc12b
commit
fa3c0031a8
@@ -51,7 +51,7 @@ ud = UnicodeData.read(sys.argv[1])
|
||||
|
||||
def sortedKeys(d):
|
||||
"""Return a sorted list of the keys of a dict"""
|
||||
keys = d.keys()
|
||||
keys = list(d.keys())
|
||||
keys.sort()
|
||||
return keys
|
||||
|
||||
|
Reference in New Issue
Block a user