diff options
Diffstat (limited to 'swiftstory/Status.py')
-rw-r--r-- | swiftstory/Status.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/swiftstory/Status.py b/swiftstory/Status.py deleted file mode 100644 index fb8347b..0000000 --- a/swiftstory/Status.py +++ /dev/null @@ -1,8 +0,0 @@ -import json - - -def error(msg, code=255): - return json.dumps({'type': 'response', 'content': {'status': code, 'info': msg}}) - -def success(obj): - return json.dumps({'type': 'response', 'content': {'status': 0, 'result': obj}}) |