zulip_bots: Make virtual_fs bot state fully JSON-able.
This commit is contained in:
parent
e5576388dd
commit
cfb767ad0f
|
@ -327,7 +327,7 @@ def get_directory(path):
|
||||||
return path[:slash]
|
return path[:slash]
|
||||||
|
|
||||||
def directory(fns):
|
def directory(fns):
|
||||||
return dict(kind='dir', fns=set(fns))
|
return dict(kind='dir', fns=list(fns))
|
||||||
|
|
||||||
def text_file(content):
|
def text_file(content):
|
||||||
return dict(kind='text', content=content)
|
return dict(kind='text', content=content)
|
||||||
|
|
Loading…
Reference in a new issue