[meld/Python3] newdifftab: Remove incorrect decode



commit 29544049eb667e835d9e4fb3b800385d0e8be032
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jul 24 08:16:44 2016 +1000

    newdifftab: Remove incorrect decode
    
    We're getting unicode filenames here as-is in Python 3.

 meld/newdifftab.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/meld/newdifftab.py b/meld/newdifftab.py
index 53fecd1..3326c84 100644
--- a/meld/newdifftab.py
+++ b/meld/newdifftab.py
@@ -113,12 +113,7 @@ class NewDiffTab(LabeledObjectMixin, GObject.GObject, gnomeglade.Component):
             path = gfile.get_path() if gfile else ""
             compare_paths.append(path)
 
-        # TODO: We should be migrating to passing around either GFiles
-        # or raw (i.e., not decoded) paths. Currently VcView is the
-        # only thing that expects this.
-        if self.diff_type in (0, 1):
-            compare_paths = [p.decode('utf8') for p in compare_paths]
-
+        # TODO: We should be migrating to passing around GFiles
         tab = self.diff_methods[self.diff_type](compare_paths)
         recent_comparisons.add(tab)
         self.emit('diff-created', tab)


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