PY3: dict doesn't have has_key
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from Samba commit 82c84513331da9d0f42ba73d03e58dce5d0f76d3)
This commit is contained in:

committed by
Nico Williams

parent
f26b1cd599
commit
fc9aab949f
@@ -136,7 +136,7 @@ exclusions = UnicodeData.read(sys.argv[2])
|
|||||||
inv = dict([(''.join(["%05x" % int(x, 0x10) for x in v[4].split(' ')]),
|
inv = dict([(''.join(["%05x" % int(x, 0x10) for x in v[4].split(' ')]),
|
||||||
[k, v[0]])
|
[k, v[0]])
|
||||||
for k,v in ud.items()
|
for k,v in ud.items()
|
||||||
if v[4] and not re.search('<[a-zA-Z]+> *', v[4]) and not exclusions.has_key(k)])
|
if v[4] and not re.search('<[a-zA-Z]+> *', v[4]) and not k in exclusions])
|
||||||
|
|
||||||
table = 0
|
table = 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user