pytdb: Use new dict API on Python 3
authorPetr Viktorin <pviktori@redhat.com>
Fri, 22 May 2015 15:57:07 +0000 (17:57 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 21 Jul 2015 17:04:15 +0000 (19:04 +0200)
commit1853a74b4ee171e85409c1209accdba98693f9eb
tree92976bf5729e60ebd0f6f5c5c4935422c52777e3
parent13c24b3416be61fd150d9ca047aafeeb676c94a3
pytdb: Use new dict API on Python 3

- Remove has_key() method, add a fast "in" operator
- Rename iterkeys() to keys()

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/pytdb.c
lib/tdb/python/tests/simple.py