[gnome-applets] invest-applet: fix quotes saving to file
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] invest-applet: fix quotes saving to file
- Date: Mon, 13 Oct 2014 18:20:26 +0000 (UTC)
commit fd899c2b4ddf058c42917f86ad47dca53db04822
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Oct 13 21:18:39 2014 +0300
invest-applet: fix quotes saving to file
Fix for this error:
Could not save the retrieved quotes file to
/home/[user]/.config/gnome-applets/invest-applet/quotes.csv: must
be str, not bytes
invest-applet/invest/quotes.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/invest-applet/invest/quotes.py b/invest-applet/invest/quotes.py
index 1eda294..b69541a 100644
--- a/invest-applet/invest/quotes.py
+++ b/invest-applet/invest/quotes.py
@@ -110,7 +110,7 @@ class QuoteUpdater(Gtk.TreeStore):
def save_quotes(self, data):
invest.debug("Storing quotes")
try:
- f = open(invest.QUOTES_FILE, 'w')
+ f = open(invest.QUOTES_FILE, 'wb')
f.write(data)
f.close()
except Exception as msg:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]