Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 48eee19d authored by ulrich_y's avatar ulrich_y
Browse files

Compress in #17: Mathematica used b64(zlib)

parent 56f35463
No related branches found
No related tags found
No related merge requests found
# https://mathematica.stackexchange.com/a/104696
import zlib
import base64
import StringIO
def decomp(b):
fp = StringIO.StringIO(
zlib.decompress(base64.b64decode(b[2:]))
)
if fp.read(4) != "!boR":
raise KeyError("Header is not matching")
return fp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment