From: Noel Power Date: Fri, 3 Aug 2018 13:25:34 +0000 (+0100) Subject: PY3: dict doesn't have has_key X-Git-Tag: tdb-1.3.17~1556 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82c84513331da9d0f42ba73d03e58dce5d0f76d3;p=thirdparty%2Fsamba.git PY3: dict doesn't have has_key Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/source4/heimdal/lib/wind/gen-normalize.py b/source4/heimdal/lib/wind/gen-normalize.py index e51893db3b8..0955a54b95a 100644 --- a/source4/heimdal/lib/wind/gen-normalize.py +++ b/source4/heimdal/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