From fc9aab949fcb1bb93f43a5bee01132ffed70a01a Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 3 Aug 2018 14:25:34 +0100 Subject: [PATCH] PY3: dict doesn't have has_key Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett (cherry picked from Samba commit 82c84513331da9d0f42ba73d03e58dce5d0f76d3) --- lib/wind/gen-normalize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wind/gen-normalize.py b/lib/wind/gen-normalize.py index 9b3553c46..a5216e932 100644 --- a/lib/wind/gen-normalize.py +++ b/lib/wind/gen-normalize.py @@ -136,7 +136,7 @@ exclusions = UnicodeData.read(sys.argv[2]) inv = dict([(''.join(["%05x" % int(x, 0x10) for x in v[4].split(' ')]), [k, v[0]]) 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