Commit 3b1cbac6 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Graph.__setstate__(): call explicit __init__()

This makes it easier to subclass Graph while chaning the __init__()
signature. This fixes issue #696.
parent b601f401
......@@ -3348,7 +3348,7 @@ class Graph(object):
return state
def __setstate__(self, state):
self.__init__()
Graph.__init__(self)
blob = state["blob"]
if blob != "":
sio = io.BytesIO(blob)
......
Markdown is supported
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