Merge pull request #378 from simbiotiqu/patch-1

Update opml.py
This commit is contained in:
Eric Le Lay 2018-01-15 21:27:05 +01:00 committed by GitHub
commit e524572692
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ class Exporter(object):
if not gpodder.ui.win32 or available > 0:
logger.error('Not enough free disk space to save channel list to %s', self.filename)
return False
fp = open(self.filename+'.tmp', 'w')
fp = open(self.filename+'.tmp', 'wb')
fp.write(data)
fp.close()
util.atomic_rename(self.filename+'.tmp', self.filename)