pytevent: Port to Python 3
commit8dbdd27526c4d5358bc2614e90f9aca36f41ed1a
authorPetr Viktorin <pviktori@redhat.com>
Fri, 22 May 2015 09:47:56 +0000 (22 11:47 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Jun 2015 04:06:19 +0000 (10 06:06 +0200)
tree27961563abe15eee05db6c38b5f84afd450a01a0
parent560576217f11b132f9c32de6e41c623dbc152137
pytevent: Port to Python 3

- Use PyStr (String on py2, Unicode on py3) for text strings
- Use PyLong instead of PyInt on Python 3
- Use new module initialization

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
lib/tevent/pytevent.c