[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: grc: fix #858 category string splitt
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: grc: fix #858 category string splitting |
Date: |
Wed, 11 Nov 2015 23:08:06 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 4bbe46efa323a05567ed6ec0ddfb03efe737dfaa
Author: Johnathan Corgan <address@hidden>
Date: Wed Nov 11 14:53:37 2015 -0800
grc: fix #858 category string splitting
---
grc/gui/BlockTreeWindow.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index 631272b..1cc4d90 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -125,7 +125,7 @@ class BlockTreeWindow(gtk.VBox):
if treestore is None: treestore = self.treestore
if categories is None: categories = self._categories
- if isinstance(category, str): category = category.split('/')
+ if isinstance(category, (str, unicode)): category = category.split('/')
category = tuple(filter(lambda x: x, category)) #tuple is hashable
#add category and all sub categories
for i, cat_name in enumerate(category):