[meld/Python3] patchdialog: Fix incorrect decode for py3k GFile changes



commit 234f9b0d9cf815d84ae310bd976c94d6a0d5ff8e
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jul 24 11:46:51 2016 +1000

    patchdialog: Fix incorrect decode for py3k GFile changes

 meld/patchdialog.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/meld/patchdialog.py b/meld/patchdialog.py
index c0db940..d42fada 100644
--- a/meld/patchdialog.py
+++ b/meld/patchdialog.py
@@ -115,8 +115,7 @@ class PatchDialog(gnomeglade.Component):
         try:
             saver.save_finish(result)
         except GLib.Error as err:
-            filename = GLib.markup_escape_text(
-                gfile.get_parse_name()).decode('utf-8')
+            filename = GLib.markup_escape_text(gfile.get_parse_name())
             error_dialog(
                 primary=_("Could not save file %s.") % filename,
                 secondary=_("Couldn't save file due to:\n%s") % (


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