Mic92/sonata — Issue #1: remove_list_duplicates() doesn't work with Treepath
Author: Mic92
Created: 2012-02-19 17:29:53+00:00
State: open

Traceback (most recent call last):
File "/home/joerg/git/sonata-own/sonata/main.py", line 1374, in on_add_item_play
self.on_add_item(widget, True)
File "/home/joerg/git/sonata-own/sonata/main.py", line 1381, in on_add_item
items = self.library.get_path_child_filenames(True)
File "/home/joerg/git/sonata-own/sonata/library.py", line 1187, in get_path_child_
filenames
items = misc.remove_list_duplicates(items, case=True)
File "/home/joerg/git/sonata-own/sonata/misc.py", line 123, in remove_list_duplica
tes
return list(iunique(inputlist, key))
File "/home/joerg/git/sonata-own/sonata/misc.py", line 108, in iunique
if key(i) not in seen:
TypeError: unhashable type: 'TreePath'