PY3: dict doesn't have has_key
[amitay/samba.git] / source4 / heimdal / lib / wind / gen-normalize.py
index e51893db3b857c45edf8978b9db0727c3d7447a0..0955a54b95a5abda454eb8e1b0e093cd1c0696f3 100644 (file)
@@ -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