Commit 2ebe821e authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix pickling with python3

parent 5d76bbb1
......@@ -63,11 +63,11 @@ libgraph_tool_core.OStream.write = OStream_write
def pickler(stream, obj):
sstream = BytesIO()
pickle.dump(obj, sstream, -1)
def unpickler(stream):
sstream = BytesIO(base64.b64decode(
sstream = BytesIO(base64.b64decode('ascii')))
return pickle.load(sstream)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment