[meld] Ensure locations are a list not a tuple before changing (bgo#699062)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Ensure locations are a list not a tuple before changing (bgo#699062)
- Date: Sat, 27 Apr 2013 20:23:14 +0000 (UTC)
commit 54bfe93a7802dccc4c4239272525cb6d402d6891
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 28 06:21:48 2013 +1000
Ensure locations are a list not a tuple before changing (bgo#699062)
meld/dirdiff.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 8755b5d..6e30b15 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -586,6 +586,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
# This is difficult to trigger, and to test. Most of the time here we
# will actually have had UTF-8 from GTK, which has been unicode-ed by
# the time we get this far. This is a fallback, and may be wrong!
+ locations = list(locations)
for i, l in enumerate(locations):
if not isinstance(l, unicode):
locations[i] = l.decode(sys.getfilesystemencoding())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]