git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2b0f81
)
PY3: dict doesn't have has_key
author
Noel Power
<noel.power@suse.com>
Fri, 3 Aug 2018 13:25:34 +0000
(14:25 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 16 Sep 2018 04:16:19 +0000
(06:16 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/heimdal/lib/wind/gen-normalize.py
patch
|
blob
|
history
diff --git
a/source4/heimdal/lib/wind/gen-normalize.py
b/source4/heimdal/lib/wind/gen-normalize.py
index e51893db3b857c45edf8978b9db0727c3d7447a0..0955a54b95a5abda454eb8e1b0e093cd1c0696f3 100644
(file)
--- 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