summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-08-03 14:25:34 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-09-16 06:16:19 +0200
commit82c84513331da9d0f42ba73d03e58dce5d0f76d3 (patch)
treecf7cb864e6eace1a35b56b75cfbf3aa6ed57cec0 /source4
parentb2b0f8191dde58fe234b0147c4a0bd39020aa504 (diff)
downloadsamba-82c84513331da9d0f42ba73d03e58dce5d0f76d3.tar.gz
PY3: dict doesn't have has_key
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/heimdal/lib/wind/gen-normalize.py2
1 files changed, 1 insertions, 1 deletions
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