[meld/Python3: 49/54] meldbuffer: Make file loading work, with a FIXME



commit b1001308191f468f50037791605af6e6bcf4e804
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Thu Feb 4 06:05:23 2016 +1000

    meldbuffer: Make file loading work, with a FIXME

 meld/meldbuffer.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldbuffer.py b/meld/meldbuffer.py
index e848c2d..b7d1d42 100644
--- a/meld/meldbuffer.py
+++ b/meld/meldbuffer.py
@@ -179,7 +179,8 @@ class MeldBufferData(GObject.GObject):
 
         # This is aiming to maintain existing behaviour for filename. The
         # behaviour is however wrong and should be fixed.
-        self.filename = value.get_path().decode('utf8') if value else None
+        # FIXME: maintaining previous comment above; this is now wrong in different awful ways
+        self.filename = value.get_path() if value else None
         self.update_mtime()
         self._connect_monitor()
 


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