| Commit message (Collapse) | Author | Age |
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Backslashes only allowed in string literals if they're part of an escape
sequence (raw strings are an exception to this rule).[1] This change
fixes some string literals that broke this rule.
1. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
Resolves: dbus/dbus-python#40
Signed-off-by: Jason Yundt <swagfortress@gmail.com>
|
|
|
|
|
|
|
|
| |
Python 2 reached EOL on 2020-01-01, and the latest version of
AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a
time as any to drop compatibility.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Analogous to 7881666743df953227ccc403af4edfac7dd7ab8e
|
|
|
|
|
|
|
| |
Since Python 3.3 the recommended location is collections.abc.Sequence,
and the collections.Sequence alias will be removed in 3.9.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
|
|
| |
This avoids unnecessary bus traffic, and when used on the system bus
it also avoids system log spam from the dbus-daemon rejecting the
unexpected reply.
Closes: https://gitlab.freedesktop.org/dbus/dbus-python/issues/26
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
| |
It hasn't had security support for about 3 years.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
| |
getargspec() isn't in Python 3.6 development versions.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
|
| |
This means we never try to import dbus/_version.py from the ${builddir},
which won't work.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
|
| |
Otherwise it won't sort correctly.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816729
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
| |
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85720
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
[smcv: separate out some changes into separate commits]
|
|
|
|
|
|
| |
In pygobject 3.8, GObjectMeta is no longer available via
gi.repository.GObject. What we actually want is "the metaclass of
GObject", so, say so.
|
|
|
|
|
|
|
|
| |
Avoid chaining up to the superclass, because that behaves particularly
oddly. This fixes regression test failures: str(some_dbus_exception) was no
longer prefixed with the D-Bus error name under Python 2.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899
|
|
|
|
|
|
| |
[commit message amended -smcv]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes include:
- DBusException.get_dbus_message(): In Python 3, the str of the exception will
already be a unicode, so don't try to decode it unless it's a bytes object
(a.k.a. 8-bit str in Python 2).
- gobject_service.py: Switch to pygi and rewrite the metaclass instantiation
code to be portable between Python 2 and Python 3.
- run-test.sh: echo a few more useful environment variables
- test-client.py:
- Globally replace deprecated assertEquals with assertEqual
- Globally replace deprecated assert_ with assertTrue
- Use bytes objects for both 'ay' signatured methods on the server
- AcceptUnicodeString will return a native unicode, i.e. a str in Python 3
and a unicode in Python 2. Python 3 has no `unicode` built-in.
- Reformat some long lines for debugging.
- test-service.py:
- Open the log file in 'a' mode for easier tailing.
- AcceptUnicodeString will return a native unicode, i.e. a str in Python 3
and a unicode in Python 2. Python 3 has no `unicode` built-in.
- reformat some long lines for debugging.
- Put module-scope code into a main() function and add a bunch of logger
output for better debugging. `session_bus` must still be global though.
Wrap main() in a bit try/except to log all top-level exceptions.
|
|
|
|
| |
object paths in Python3, as per Simon's review comments.
|
|
|
|
|
|
|
| |
- Disallow appending unicode objects with 'y' (bytes) signatures. This now
requires either a bytes object or an integer. Update the tests to reflect
- this change.
- Fix broken __all__ in Python 3.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|\
| |
| |
| |
| | |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30812
Tested-by: Elvis Pfützenreuter <epx@signove.com>
|
| | |
|
|/
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=36206
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
|
|
| |
org.freedesktop.DBus.ListNames instead of org.freedesktop.DBus.ListActivatableNames
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Connection, add_signal_receiver adds object paths to
self._signal_recipients_by_object_path and they are not cleaned by
remove_signal_receiver.
As a result self._signal_recipients_by_object_path keeps growing indefinitely.
This seem to work for me. I know very little about dbus-python though, so I
could very well be doing it wrong.
https://bugs.freedesktop.org/show_bug.cgi?id=17551
https://bugs.freedesktop.org/attachment.cgi?id=18857
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
| |
Specifically, DBusException and its subclasses no longer have the remote
traceback by default (although subclasses can turn it back on again
by setting include_traceback = True, and the various "programmer error"
subclasses of DBusException do have this set).
Hopefully this will stop people thinking it's a dbus-python or
telepathy-python bug when a D-Bus API like Telepathy deliberately raises an
error (and so dbus-python or telepathy-python is visible in the traceback).
|
| |
|
|
|
|
|
|
| |
By either appending to a list of callbacks, or subclassing and providing a
method, you can be notified when connections are added or removed.
Inspired by the DBusServer patch from Huang Peng.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|