[meld] ui.statusbar: Bytes fix for py3k



commit bb5b029286fb1c5287d24f981dea2522842c08f5
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Aug 27 08:00:52 2016 +1000

    ui.statusbar: Bytes fix for py3k

 meld/ui/statusbar.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/ui/statusbar.py b/meld/ui/statusbar.py
index f8920d5..cc26d62 100644
--- a/meld/ui/statusbar.py
+++ b/meld/ui/statusbar.py
@@ -197,6 +197,6 @@ class HighlightModeSelector(TemplateHackMixin, Gtk.Grid):
         self.emit('language-selected', lang)
 
 
-template = open(ui_file('gedit-highlight-mode-selector.ui')).read()
+template = open(ui_file('gedit-highlight-mode-selector.ui'), 'rb').read()
 template_bytes = GLib.Bytes.new(template)
 HighlightModeSelector.set_template(template_bytes)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]