[Bug 1100758] Re: suds.sax.text.Text objects with unicode cannot be encoded when used in lists
I believe this is no longer an issue because it doesn't occur under Python 3 and Python 2 is EOL. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100758 Title: suds.sax.text.Text objects with unicode cannot be encoded when used in lists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100758] Re: suds.sax.text.Text objects with unicode cannot be encoded when used in lists
** Changed in: suds (Ubuntu) Status: New => Confirmed ** Changed in: suds (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100758 Title: suds.sax.text.Text objects with unicode cannot be encoded when used in lists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100758] Re: suds.sax.text.Text objects with unicode cannot be encoded when used in lists
Found the bug. From the documentation on __repr__ http://docs.python.org/2/reference/datamodel.html "The return value must be a string object." However suds.sax.text.Text returns unicode. Adding .__repr__() appears to fix the problem. So replace return ''.join(s) with return ''.join(s).__repr__() and the problem goes away. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100758 Title: suds.sax.text.Text objects with unicode cannot be encoded when used in lists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100758] Re: suds.sax.text.Text objects with unicode cannot be encoded when used in lists
I took a look on the source of suds.sax.text.Text and tried to remove everything unrelated to the bug. I found that the following lines of the suds.sax.text.Text implementation is everything necessary to reproduce the problem. class Text(unicode): def __repr__(self): s = [self] return ''.join(s) I haven't spotted the bug in those lines of code. Does anybody else spot the bug right away? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100758 Title: suds.sax.text.Text objects with unicode cannot be encoded when used in lists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs