7711: Fix tree views in python3

This commit is contained in:
Nick Hall 2014-05-17 19:32:37 +01:00
parent 61ba0edd25
commit 28a70926ab

View File

@ -90,10 +90,10 @@ class Node(object):
#sortkey must be localized sort, so #sortkey must be localized sort, so
self.sortkey = glocale.sort_key(sortkey) self.sortkey = glocale.sort_key(sortkey)
if not self.sortkey: if not self.sortkey:
self.sortkey = '' self.sortkey = b''
else: else:
self.name = '' self.name = ''
self.sortkey = '' self.sortkey = b''
self.ref = ref self.ref = ref
self.handle = handle self.handle = handle
self.secondary = secondary self.secondary = secondary