zulip_bots: Make virtual_fs bot state fully JSON-able.

This commit is contained in:
derAnfaenger 2017-10-31 23:14:21 +01:00
parent e5576388dd
commit cfb767ad0f

View file

@ -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)