Write encoded data in binary format.

This commit is contained in:
Bastian Kleineidam 2013-04-05 19:27:30 +02:00
parent 0fbc005377
commit bd1d41b83c

View file

@ -50,7 +50,7 @@ class Feed(object):
def write(self, path):
"""Write RSS content to file."""
with open(path, 'w') as f:
with open(path, 'wb') as f:
f.write(self.getXML())
def getXML(self):