| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
This file includes <Python.h>, with some #defines that affect the
interpretation of the Python headers (PY_SSIZE_T_CLEAN, PY_SIZE_T_CLEAN).
In particular, <Python.h> transitively includes pyconfig.h, which
defines _GNU_SOURCE, altering the version of struct stat used;
this is potentially a problem if a struct stat is shared between
files, although in practice we don't do that.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749133
|
| |
|
|
|
|
| |
Every use here turns out to be unnecessary, some compilers *still*
don't have it after more than a decade in ISO C, and if we need
fixed-length integer types we can use the ones from D-Bus.
|
| | |
|
| |
|
|
|
| |
This reverts the Python 2 API to be in terms of PyInt, leaving the
Python 3 API in terms of PyLong (which is called 'int' in Python code).
|
| |
|
|
|
| |
Unicode strings aren't bytestrings, so there's no obvious meaning for
the byte value of a Unicode string of length 1.
|
| |
|
|
|
|
|
|
| |
Strictly speaking, DBUS_FOO is libdbus' namespace, not ours. Use
DBUS_PY_FOO.
DBUS_BYTES_BASE was misleading: it's the base class for a single byte,
so call it DBUS_PY_BYTE_BASE.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
2, since there are still some unconditional PyInt calls, which are not valid
in Python 3. However, it lays the framework for conditionalizing on Python 3
and using only PyLong in that case. Where it doesn't matter, PyLong is used
unconditionally.
|
| |
|
|
|
| |
PyString API. This makes the code compilable in Python 2.x (x >= 6) and
Python 3.
|
| |
|
|
| |
- De-tabbify a few instances that "make check" complains about.
|
| |
|
|
|
|
| |
Part of a patch for Python 3 compatibility.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
| |
Based on part of a patch from Barry Warsaw.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
|
| |
This avoids these static types wrongly being deallocated. Python
implements static types as having one initial reference, which is never
meant to be released, but if you get your refcounting wrong they'll be
"deallocated" (causing a crash) during Py_Finalize.
|
| | |
|
| |
|
|
| |
removing all references to the LGPL as a result
|
| | |
|
| |
|
|
| |
lines in license statement
|
| |
|
|
| |
no longer exists
|
| |
|
|
| |
astonishment). Also document how to get a ByteArray from the API
|
| | |
|
|
|
signature, string) into separate translation units
|