Commit 739de8d9 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

Fix bug in last change, would crash with multiple entries in topdirs

parent 807d2bd6
......@@ -199,8 +199,8 @@ def get_dirs(tops, depth):
top_path = top.rsplit(b'/', 1)[0]
dirs = [w.replace(top_path+b'/', b'', 1) for w in dirs]
v = v + dirs
for i in range(len(v)):
v[i] = v[i].decode('utf-8', 'surrogateescape')
for i in range(len(v)):
v[i] = v[i].decode('utf-8', 'surrogateescape')
return ['<all>'] + v
#}}}
#{{{ get_query
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment