https://bugs.gpodder.org/show_bug.cgi?id=1699

             Bug #: 1699
           Summary: exporting subscriptions throws an exception
    Classification: Unclassified
           Product: gPodder
           Version: 3.3.0
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: low
         Component: Command-line interface
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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".

-- 
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

Reply via email to