summaryrefslogtreecommitdiff
path: root/dbus_bindings
Commit message (Collapse)AuthorAgeFilesLines
* abstract: Stringify float subclasses using float's reprSimon McVittie2019-11-211-1/+14
| | | | | | | | Python 3.8 removes the tp_str for various built-in types, so we would print Double values as their repr (for example dbus.Double(0.5)), which is a regression. Print them as 0.5 instead. Signed-off-by: Simon McVittie <smcv@collabora.com>
* int: Ensure we stringify Booleans as 0 or 1Simon McVittie2019-11-211-1/+7
| | | | | | | | | | Python 3.8 removes the tp_str for various built-in types, so we would print Boolean values as their repr (for example dbus.Boolean(True)), which is a regression. Print them as 0 or 1 instead, which was the historical behaviour (arguably False or True would be better, but that would be a behaviour change). Signed-off-by: Simon McVittie <smcv@collabora.com>
* abstract: Stringify long subclasses using long's reprSimon McVittie2019-11-211-1/+14
| | | | | | | | | | Python 3.8 removes the tp_str for various built-in types, so we would print long-derived values as their repr (for example dbus.Int64(42)), which is a regression. Print them as 42 instead. Co-authored-by: matclab <mathieu@clabaut.net> Signed-off-by: Simon McVittie <smcv@collabora.com> Fixes: https://gitlab.freedesktop.org/dbus/dbus-python/issues/31
* Revert "Consistently save/restore exception indicator when called from C code"Simon McVittie2019-09-123-43/+16
| | | | | | | | | | Saving and restoring the exception indicator breaks users of dbus-python that rely on being able to raise SystemExit (or call sys.exit()) from a dbus-python method, such as libsecret's test suite. This reverts commit dbc0f7ef463922c026f1183a07368aa61ffe98dc. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Consistently save/restore exception indicator when called from C codeSimon McVittie2019-09-023-16/+43
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* TRACE: Fix NULL argument to format stringSimon McVittie2019-09-021-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* unixfd: Adjust docstringSimon McVittie2019-09-021-2/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add variant_level to UnixFd typeJohn Baublitz2019-08-301-3/+27
|
* Silence -Wcast-function-type with gcc 8Simon McVittie2019-07-236-45/+48
| | | | | | | | | Casting via void (*)(void) is the documented way to suppress this warning. This is required because the CPython API treats function pointers as generic, with flags to indicate different calling conventions. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Don't set deprecated tp_print to NULL on Python 3Simon McVittie2019-07-157-1/+40
| | | | | | | This has apparently never actually done anything in the Python 3 series. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add clearer licensing information in SPDX formatSimon McVittie2019-07-1528-0/+56
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Improve documentation for SphinxSimon McVittie2018-05-028-93/+63
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* doc: Be more clear about bytes vs. unicodeSimon McVittie2018-05-022-5/+9
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Improve UTF8String documentationSimon McVittie2018-05-021-9/+8
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Convert documentation from epydoc to SphinxSimon McVittie2018-05-027-70/+56
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Rename source directories for C code to silence an ImportWarningSimon McVittie2017-11-0528-0/+11289
Python warns that it is not importing these directories because they contain no __init__.py. Signed-off-by: Simon McVittie <smcv@collabora.com>