Skip to content

Commit

Permalink
Fix #85: write str, not bytes to text-mode file in quote_save_to_favo…
Browse files Browse the repository at this point in the history
…rites (#86)
  • Loading branch information
elonbing authored and jlu5 committed Oct 4, 2018
1 parent 48adbd5 commit 311953b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variety/VarietyWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,7 @@ def quote_save_to_favorites(self, widget=None):
if self.quote_favorites_contents.find(self.current_quote_to_text()) == -1:
with open(self.options.quotes_favorites_file, "a") as f:
text = self.current_quote_to_text()
f.write(text.encode('utf-8'))
f.write(text)
self.reload_quote_favorites_contents()
self.update_indicator()
self.show_notification("Saved", "Saved to %s" % self.options.quotes_favorites_file)
Expand Down

0 comments on commit 311953b

Please sign in to comment.