diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-18 00:24:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-18 00:24:27 -0300 |
commit | 7f71e3755cbcba424ac82da9f9ee28665acb4c54 (patch) | |
tree | c99f51785682a5d44140e1ca3224986ae8b40c29 /utils.py | |
parent | acf3978aaa5b4d92495d7eba90fcfdd96410bc3f (diff) | |
download | server-7f71e3755cbcba424ac82da9f9ee28665acb4c54.tar.gz server-7f71e3755cbcba424ac82da9f9ee28665acb4c54.tar.bz2 server-7f71e3755cbcba424ac82da9f9ee28665acb4c54.tar.xz server-7f71e3755cbcba424ac82da9f9ee28665acb4c54.zip |
Update compress to Python3
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -88,6 +88,7 @@ def stdout(mx): def compress(string): dbgprint("Compress: Received JSON data: %s" % (string)) sjs=json.dumps(string) + sjs=sjs.encode("ascii") sjs=zlib.compress(sjs) sjs=base64.b64encode(sjs) dbgprint("Compress: Sending base64+zlib JSON data: %s" % (sjs)) |