https://bugs.gpodder.org/show_bug.cgi?id=1699
--- Comment #1 from Thomas Perl <[email protected]> 2012-10-23 11:44:29 BST --- (In reply to comment #0) > Python 3 > exporting subscriptions to OPML file ("export FILENAME") throws the following > error: > > 1350270775.113522 [gpodder.opml] ERROR: Could not open file for writing: > gpolist.opml > Traceback (most recent call last): > File "/home/.../opml.py", line 189, in write > fp.write(data) > TypeError: must be str, not bytes > > The reason is described here: > http://docs.python.org/py3k/library/xml.dom.minidom.html#xml.dom.minidom.Node.toxml > > Explicit encoding is now unnecessary and causes the output to be byte string. > Also, the error text is misleading - exception was caught on "write" > statement; > not on "open". If you open the file as "wb" instead of "w", it should work around this problem, right? -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
