summaryrefslogtreecommitdiff
path: root/dbus/exceptions.py
Commit message (Collapse)AuthorAge
* Remove support for Python 2Simon McVittie2021-09-15
| | | | | | | | 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>
* Add clearer licensing information in SPDX formatSimon McVittie2019-07-15
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* DBusException: override both __str__ and __unicode__Simon McVittie2012-10-16
| | | | | | | | 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
* Support unicode messages for DBusException in Python 2Michael Vogt2012-10-16
| | | | | | [commit message amended -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* More Python 3 porting, this time primarily to get test-client.py working.Barry Warsaw2011-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Omit the remote traceback from certain D-Bus errorsSimon McVittie2008-07-17
| | | | | | | | | | | 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).
* dbus.exceptions.DBusException: allow setting _dbus_error_name in subclassesSimon McVittie2007-09-27
|
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-27
| | | | removing all references to the LGPL as a result
* Implement DBusException in pure Python; add get_dbus_name() method and name= ↵Simon McVittie2007-05-16
| | | | keyword argument
* Throughout dbus-python: Use the C implementation.Simon McVittie2006-09-26
| | | | | | Add document API_CHANGES.txt listing visible API changes. Add more test cases, for low-level Python <-> D-Bus type mappings. Amend existing test cases to cope with the API changes.
* Rename dbus_bindings (sometimes a.k.a. dbus.dbus_bindings) to _dbus_bindings.Simon McVittie2006-08-31
| | | | | Ditto for dbus_glib_bindings. Remove dbus.pth - should no longer be needed after this change.
* Add some docstrings (reStructuredText with epydoc annotations)Simon McVittie2006-08-30
|
* Move python/ to dbus/, the name of the module.Robert McQueen2006-07-12