From f2909c23abc4f8fa55d71673785f8e70a843f6ce Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 15 Dec 2011 16:50:02 -0500 Subject: - Added back the missing PY3PORT.rst file, with updates. - 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. --- dbus/types.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dbus') diff --git a/dbus/types.py b/dbus/types.py index a134495..c33acff 100644 --- a/dbus/types.py +++ b/dbus/types.py @@ -1,7 +1,7 @@ -__all__ = ('ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean', +__all__ = ['ObjectPath', 'ByteArray', 'Signature', 'Byte', 'Boolean', 'Int16', 'UInt16', 'Int32', 'UInt32', 'Int64', 'UInt64', 'Double', 'String', 'Array', 'Struct', 'Dictionary', - 'UTF8String', 'UnixFd') + 'UnixFd'] from _dbus_bindings import ( Array, Boolean, Byte, ByteArray, Dictionary, Double, Int16, Int32, Int64, @@ -11,3 +11,4 @@ from _dbus_bindings import ( from dbus._compat import is_py2 if is_py2: from _dbus_bindings import UTF8String + __all__.append('UTF8String') -- cgit v1.2.3