~barry/python-dbus/py3k-works

« back to all changes in this revision

Viewing changes to _dbus_bindings/message-append.c

  • Committer: Barry Warsaw
  • Date: 2011-12-05 20:33:02 UTC
  • Revision ID: barry@python.org-20111205203302-0svub12h83fj2rw3
Test suite now passes on Python 2.6, 2.7, and 3.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
#endif
269
269
            return FROMSTRING(DBUS_TYPE_DOUBLE_AS_STRING);
270
270
    }
271
 
    else if (PyString_Check(obj)) {
 
271
    else if (PyBytes_Check(obj)) {
272
272
        if (DBusPyObjectPath_Check(obj))
273
273
            return FROMSTRING(DBUS_TYPE_OBJECT_PATH_AS_STRING);
274
274
        else if (DBusPySignature_Check(obj))