diff options
| author | Petr Viktorin <pviktori@redhat.com> | 2015-09-18 14:37:13 +0200 |
|---|---|---|
| committer | Jan Cholasta <jcholast@redhat.com> | 2015-10-07 10:27:20 +0200 |
| commit | f4e62be667e60622b769d0c7533e736584d5f5a9 (patch) | |
| tree | c9a7af77ff3e9c2acb5b80d29753ab929d2d2b7c /ipapython/py_default_encoding/setup.py | |
| parent | a6d9c40f14ef608946a88c86d8fe7c9793225e44 (diff) | |
| download | freeipa-f4e62be667e60622b769d0c7533e736584d5f5a9.tar.gz freeipa-f4e62be667e60622b769d0c7533e736584d5f5a9.tar.xz freeipa-f4e62be667e60622b769d0c7533e736584d5f5a9.zip | |
ipap11helper: Port to Python 3
- Use PyLong instead of PyInt on Python 3
- Use PyBytes instead of PyString for binary strings
- Use Py_TYPE(o) instead of o->py_type, and PyVarObject_HEAD_INIT
instead of PyObject_HEAD_INIT
- Use a helper function instead of Py_BuildValue("s#"), so that
bytes are returned on Python 3
- Use new style module initialization on Python 3
- Use PyModule_AddIntConstant and PyModule_AddIntMacro for adding constants
Reviewed-By: David Kupka <dkupka@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython/py_default_encoding/setup.py')
0 files changed, 0 insertions, 0 deletions
